|
| SbBox2f () |
| Constructs an empty box. More...
|
|
| SbBox2f (float xmin, float ymin, float xmax, float ymax) |
| Constructor given bounds. More...
|
|
| SbBox2f (const SbVec2f &_min, const SbVec2f &_max) |
| Constructor given minimum and maximum points. More...
|
|
| ~SbBox2f () |
| Destructor. More...
|
|
const SbVec2f & | getMin () const |
| Returns the minimum and maximum points of the box. More...
|
|
const SbVec2f & | getMax () const |
| Returns the minimum and maximum points of the box. More...
|
|
SbVec2f | getCenter () const |
| Returns the center of the box. More...
|
|
void | extendBy (const SbVec2f &pt) |
| Extends Box2f (if necessary) to contain given 2D point. More...
|
|
void | extendBy (const SbBox2f &r) |
| Extends Box2f (if necessary) to contain given Box2f. More...
|
|
bool | intersect (const SbVec2f &pt) const |
| Returns TRUE if intersection of given point and Box2f is not empty. More...
|
|
bool | intersect (const SbBox2f &bb) const |
| Returns TRUE if intersection of given Box2f and Box2f is not empty. More...
|
|
void | setBounds (float xmin, float ymin, float xmax, float ymax) |
| Sets the corners of the box. More...
|
|
void | setBounds (const SbVec2f &_min, const SbVec2f &_max) |
|
void | getBounds (float &xmin, float &ymin, float &xmax, float &ymax) const |
|
void | getBounds (SbVec2f &_min, SbVec2f &_max) const |
|
SbVec2f | getClosestPoint (const SbVec2f &point) |
| Returns the closest point on the box to the given point. More...
|
|
void | getOrigin (float &originX, float &originY) const |
| Gets box origin. More...
|
|
void | getSize (float &sizeX, float &sizeY) const |
| Gets box size. More...
|
|
float | getAspectRatio () const |
| Gets box aspect ratio. More...
|
|
void | makeEmpty () |
| Makes an empty box. More...
|
|
bool | isEmpty () const |
| Returns TRUE if the box is empty, and FALSE otherwise. More...
|
|
bool | hasArea () const |
| Returns TRUE if both dimensions of the box have positive size, and FALSE otherwise. More...
|
|
2D box which has planes parallel to the major axes and is specified by two points (specified as floating point) on a diagonal. This class is part of the standard Inventor datatype classes and is used as input and output to geometry operations.
- See Also
- SbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix
Definition at line 372 of file SbBox.h.