Public Member Functions | |
bool | __eq__ (self, Box2d a) |
None | __init__ (self) |
None | __init__ (self, Vector2d min, Vector2d max) |
None | __init__ (self, Box2d arg0) |
bool | __ne__ (self, Box2d a) |
Vector2d | center (self) |
bool | contains (self, Vector2d pt) |
float | diagonal (self) |
Box2d | expanded (self, Vector2d expansion) |
Vector2d | getBoxClosestPointTo (self, Vector2d pt) |
float | getDistanceSq (self, Box2d b) |
float | getDistanceSq (self, Vector2d pt) |
None | include (self, Vector2d pt) |
None | include (self, Box2d b) |
Box2d | insignificantlyExpanded (self) |
Box2d | intersect (self, Box2d b) |
Box2d | intersection (self, Box2d b) |
bool | intersects (self, Box2d b) |
Vector2d | size (self) |
bool | valid (self) |
float | volume (self) |
Static Public Member Functions | |
Box2d | fromMinAndSize (Vector2d min, Vector2d size) |
Static Public Attributes | |
typing | elements = 2 |
Protected Member Functions | |
Vector2d | _Subscript (self, int e) |
Vector2d | _Subscript (self, int e) |
Generated from: MR::Box2d Aliases: Box_Vector2_double Box given by its min- and max- corners
None meshlib.mrmeshpy.Box2d.__init__ | ( | self | ) |
create invalid box by default
None meshlib.mrmeshpy.Box2d.__init__ | ( | self, | |
Box2d | arg0 ) |
Implicit copy constructor.
bool meshlib.mrmeshpy.Box2d.__eq__ | ( | self, | |
Box2d | a ) |
bool meshlib.mrmeshpy.Box2d.__ne__ | ( | self, | |
Box2d | a ) |
|
protected |
min/max access by 0/1 index
|
protected |
Vector2d meshlib.mrmeshpy.Box2d.center | ( | self | ) |
computes center of the box
bool meshlib.mrmeshpy.Box2d.contains | ( | self, | |
Vector2d | pt ) |
checks whether given point is inside (including the surface) of the box
float meshlib.mrmeshpy.Box2d.diagonal | ( | self | ) |
computes length from min to max
decreases min and increased max on given value
returns closest point in the box to given point
float meshlib.mrmeshpy.Box2d.getDistanceSq | ( | self, | |
Box2d | b ) |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect
float meshlib.mrmeshpy.Box2d.getDistanceSq | ( | self, | |
Vector2d | pt ) |
returns squared distance between this box and given point; returns zero if the point is inside or on the boundary of the box
None meshlib.mrmeshpy.Box2d.include | ( | self, | |
Box2d | b ) |
minimally increases the box to include another box
None meshlib.mrmeshpy.Box2d.include | ( | self, | |
Vector2d | pt ) |
minimally increases the box to include given point
Box2d meshlib.mrmeshpy.Box2d.insignificantlyExpanded | ( | self | ) |
decreases min and increases max to their closest representable value
computes intersection between this and other box
bool meshlib.mrmeshpy.Box2d.intersects | ( | self, | |
Box2d | b ) |
checks whether this box intersects or touches given box
Vector2d meshlib.mrmeshpy.Box2d.size | ( | self | ) |
computes size of the box in all dimensions
bool meshlib.mrmeshpy.Box2d.valid | ( | self | ) |
true if the box contains at least one point
float meshlib.mrmeshpy.Box2d.volume | ( | self | ) |
computes the volume of this box
|
static |