|
| SbBox2f () |
| Constructs an empty box.
|
|
| SbBox2f (float xmin, float ymin, float xmax, float ymax) |
| Constructor given bounds.
|
|
| SbBox2f (const SbVec2f &_min, const SbVec2f &_max) |
| Constructor given minimum and maximum points.
|
|
| ~SbBox2f () |
| Destructor.
|
|
const SbVec2f & | getMin () const |
| Returns the minimum and maximum points of the box.
|
|
const SbVec2f & | getMax () const |
| Returns the minimum and maximum points of the box.
|
|
SbVec2f | getCenter () const |
| Returns the center of the box.
|
|
void | extendBy (const SbVec2f &pt) |
| Extends Box2f (if necessary) to contain given 2D point.
|
|
void | extendBy (const SbBox2f &r) |
| Extends Box2f (if necessary) to contain given Box2f.
|
|
bool | intersect (const SbVec2f &pt) const |
| Returns TRUE if intersection of given point and Box2f is not empty.
|
|
bool | intersect (const SbBox2f &bb) const |
| Returns TRUE if intersection of given Box2f and Box2f is not empty.
|
|
void | setBounds (float xmin, float ymin, float xmax, float ymax) |
| Sets the corners of the box.
|
|
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.
|
|
void | getOrigin (float &originX, float &originY) const |
| Gets box origin.
|
|
void | getSize (float &sizeX, float &sizeY) const |
| Gets box size.
|
|
float | getAspectRatio () const |
| Gets box aspect ratio.
|
|
void | makeEmpty () |
| Makes an empty box.
|
|
bool | isEmpty () const |
| Returns TRUE if the box is empty, and FALSE otherwise.
|
|
bool | hasArea () const |
| Returns TRUE if both dimensions of the box have positive size, and FALSE otherwise.
|
|
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.