Esempio n. 1
0
    def getBoundingBoxPoints(self):
        """

        :returns: All four bounding box points starting at top left -> top right -> bottom right -> bottom left
        """
        firstJoint: Joint = self[0]

        resultBox = BoundingBox()
        resultBox.topLeft = (    int(firstJoint.x_top_left_BB)   ,   int(firstJoint.y_top_left_BB)   )

        resultBox.topRight = (   int(firstJoint.x_bottom_right_BB)  ,  int(firstJoint.y_top_left_BB)   )

        resultBox.bottomRight = (   int(firstJoint.x_bottom_right_BB)  ,  int(firstJoint.y_bottom_right_BB)   )

        resultBox.bottomLeft = (   int(firstJoint.x_top_left_BB)   , int(firstJoint.y_bottom_right_BB)    )

        return resultBox