|
| | SbBox2d () |
| | Constructs an empty box.
|
| |
| | SbBox2d (double xmin, double ymin, double xmax, double ymax) |
| | Constructor given bounds.
|
| |
| | SbBox2d (const SbVec2d &_min, const SbVec2d &_max) |
| | Constructor given minimum and maximum points.
|
| |
| | ~SbBox2d () |
| | Destructor.
|
| |
| const SbVec2d & | getMin () const |
| | Returns the minimum and maximum points of the box.
|
| |
| const SbVec2d & | getMax () const |
| | Returns the minimum and maximum points of the box.
|
| |
| SbVec2d | getCenter () const |
| | Returns the center of the box.
|
| |
| void | extendBy (const SbVec2d &pt) |
| | Extends Box2d (if necessary) to contain given 2D point.
|
| |
| void | extendBy (const SbBox2d &r) |
| | Extends Box2d (if necessary) to contain given Box2d.
|
| |
| bool | intersect (const SbVec2d &pt) const |
| | Returns TRUE if intersection of given point and Box2d is not empty.
|
| |
| bool | intersect (const SbBox2d &bb) const |
| | Returns TRUE if intersection of given Box2d and Box2d is not empty.
|
| |
| void | setBounds (double xmin, double ymin, double xmax, double ymax) |
| | Sets the corners of the box.
|
| |
| void | setBounds (const SbVec2d &_min, const SbVec2d &_max) |
| |
| void | getBounds (double &xmin, double &ymin, double &xmax, double &ymax) const |
| |
| void | getBounds (SbVec2d &_min, SbVec2d &_max) const |
| |
| SbVec2d | getClosestPoint (const SbVec2d &point) |
| | Returns the closest point on the box to the given point.
|
| |
| void | getOrigin (double &originX, double &originY) const |
| | Gets box origin.
|
| |
| void | getSize (double &sizeX, double &sizeY) const |
| | Gets box size.
|
| |
| double | 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 doubles) 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, SbBox2f, SbBox3d, SbXfBox3d, SbVec3d, SbVec2d, SbMatrixd
Definition at line 373 of file SbBoxd.h.