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