Computes an oriented bounding rectangle for a set of points.
Methods ¶
__init__(points)
Constructs the minimum area oriented bounding rectangle for the given points (a sequence of hou.Vector2).
isAlmostEqual(brect, tolerance=0.00001)
→ bool
Returns whether this bounding rectangle is equal to another, subject to numerical tolerances.
sizevec()
→ hou.Vector2
Returns a vector describing the size of the box in the x
and y
axes.
center()
→ hou.Vector2
Returns the position of the center of the bounding rectangle.
orientation()
→ hou.Matrix2
Returns a hou.Matrix2 that defines the orientation of the bounding rectangle.