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