qsrlib_qsrs.qsr_cardinal_direction_bounding_boxes_centroid_2d module¶
-
class
qsrlib_qsrs.qsr_cardinal_direction_bounding_boxes_centroid_2d.QSR_Cardinal_Direction_Bounding_Boxes_Centroid_2D[source]¶ Bases:
qsrlib_qsrs.qsr_dyadic_abstractclass.QSR_Dyadic_1t_Abstractclass- Cardinal direction relations
# ‘s’ south # ‘sw’ south-west # ‘w’ west # ‘nw’ north-west # ‘n’ north # ‘ne’ north-east # ‘e’ east # ‘se’ south-east
where,
x1, y2: the xy-coords of the top-left corner of the rectangle x2, y2: the xy-coords of the bottom-right corner of the rectangle