SbBox2d(3)
β¨ SbBox2d β¨
okay bestie, welcome to SbBox2d from the Library Functions Manual β she's a 2 dimensional box with double precision corner coordinates π and honestly? she's kind of a legend.
πΈ NAME πΈ
SbBox2d β the SbBox2d class is a 2 dimensional box with double precision corner coordinates. that's it. that's the girl. π
π SYNOPSIS π
#include <Inventor/SbBox2d.h>
π« Public Member Functions π«
SbBox2d (void)
SbBox2d (double xmin, double ymin, double xmax, double ymax)
SbBox2d (const SbVec2d &minpoint, const SbVec2d &maxpoint)
SbBox2d (const SbBox2f &box)
SbBox2d (const SbBox2s &box)
SbBox2d (const SbBox2i32 &box)
SbBox2d & setBounds (double xmin, double ymin, double xmax, double ymax)
SbBox2d & setBounds (const SbVec2d &minpoint, const SbVec2d &maxpoint)
SbBox2d & setBounds (const SbBox2f &box)
SbBox2d & setBounds (const SbBox2s &box)
SbBox2d & setBounds (const SbBox2i32 &box)
void getBounds (double &xmin, double &ymin, double &xmax, double &ymax) const
void getBounds (SbVec2d &minpoint, SbVec2d &maxpoint) const
const SbVec2d & getMin (void) const
SbVec2d & getMin (void)
const SbVec2d & getMax (void) const
SbVec2d & getMax (void)
void extendBy (const SbVec2d &point)
void extendBy (const SbBox2d &box)
void makeEmpty (void)
SbBool isEmpty (void) const
SbBool hasArea (void) const
SbBool intersect (const SbVec2d &point) const
SbBool intersect (const SbBox2d &box) const
SbVec2d getClosestPoint (const SbVec2d &p) const
SbBool findIntersection (const SbVec2d &a, const SbVec2d &b, SbVec2d &ia, SbVec2d &ib) const
SbVec2d getCenter (void) const
void getOrigin (double &originX, double &originY) const
void getSize (double &sizeX, double &sizeY) const
double getAspectRatio (void) const
π¦ Related Symbols π¦
heads up bestie β these are not member symbols, they're just vibing nearby:
int operator== (const SbBox2d &b1, const SbBox2d &b2)
int operator!= (const SbBox2d &b1, const SbBox2d &b2)
π Detailed Description π
The SbBox2d class is a 2 dimensional box with double precision corner coordinates. periodt. π
This box class is used by many other classes in Coin for data exchange and storage. She provides two box corners with double precision coordinates, which is β among other things β useful for representing screen or canvas dimensions in normalized coordinates. it's giving geometry glow-up fr fr β¨
Note: This class is a Coin extension.
See also π«Ά SbBox2s, SbBox2f, SbBox3s, SbBox3f, SbBox3d, SbXfBox3f.
Since β Coin 2.0
TGS Inventor 2.6
π§ Constructor & Destructor Documentation π§
π SbBox2d::SbBox2d (void ) [inline] π
The default constructor makes an empty box. no corners, no drama, just potential π
π SbBox2d::SbBox2d (double xmin, double ymin, double xmax, double ymax) [inline] π
Constructs a box with the given corners.
xmin should be less than xmax and ymin should be less than ymax if you want to make a valid box. like, that's the whole vibe check okay π
π SbBox2d::SbBox2d (const SbVec2d & min, const SbVec2d & max) [inline] π
Constructs a box with the given lower left and upper right corners.
The coordinates of min should be less than the coordinates of max if you want to make a valid box. same energy as above, bestie. no cap π«Ά
π Member Function Documentation π
π SbBox2d & SbBox2d::setBounds (double xmin, double ymin, double xmax, double ymax) [inline] π
Reset the boundaries of the box. glow-up time β¨
xmin should be less than xmax and ymin should be less than ymax if you want to make a valid box.
Returns reference to self. she's self-referential like that π
See also getBounds().
π SbBox2d & SbBox2d::setBounds (const SbVec2d & min, const SbVec2d & max) [inline] π
Reset the boundaries of the box with the given corners.
The coordinates of min should be less than the coordinates of max if you want to make a valid box.
Returns reference to self.
See also getBounds().
π SbBox2d & SbBox2d::setBounds (const SbBox2f & box) π
Reset the boundaries of the box with the given box boundaries.
Returns reference to self.
See also getBounds()
π SbBox2d & SbBox2d::setBounds (const SbBox2s & box) π
Reset the boundaries of the box with the given box boundaries.
Returns reference to self.
See also getBounds()
π SbBox2d & SbBox2d::setBounds (const SbBox2i32 & box) π
Reset the boundaries of the box with the given box boundaries.
Returns reference to self.
See also getBounds()
π void SbBox2d::getBounds (double & xmin, double & ymin, double & xmax, double & ymax) const [inline] π
Returns the box boundaries.
See also setBounds(), getMin(), getMax().
π void SbBox2d::getBounds (SbVec2d & min, SbVec2d & max) const [inline] π
Returns the box min and max corner points.
See also setBounds(), getMin(), getMax().
π const SbVec2d & SbBox2d::getMin (void ) const [inline] π
Returns the lower left corner of the box.
See also getOrigin(), getMax().
π SbVec2d & SbBox2d::getMin (void ) [inline] π
Returns the lower left corner of the box.
See also getOrigin(), getMax().
π const SbVec2d & SbBox2d::getMax (void ) const [inline] π
Returns the upper right corner of the box.
See also getMin().
π SbVec2d & SbBox2d::getMax (void ) [inline] π
Returns the upper right corner of the box.
See also getMin().
π void SbBox2d::extendBy (const SbVec2d & point) π
Extend the boundaries of the box by the given point, i.e. make the box fit around the point if it isn't already situated within it. she's expanding her horizons, we love to see it π
π void SbBox2d::extendBy (const SbBox2d & box) π
Extend the boundaries of the box by the given box parameter. This is equal to calling the above method twice with the corner points. two-for-one deal, iconic β¨
π void SbBox2d::makeEmpty (void ) π
Marks this as an empty box.
See also isEmpty().
π SbBool SbBox2d::isEmpty (void ) const [inline] π
Check if this has been marked as an empty box.
See also makeEmpty().
π SbBool SbBox2d::hasArea (void ) const [inline] π
Check if the box has "positive" area, i.e. the lower left corner is actually lower and more to the left than the other corner point. geometry said be normal, bestie π
π SbBool SbBox2d::intersect (const SbVec2d & point) const π
Check if point lies within the boundaries of this box.
π SbBool SbBox2d::intersect (const SbBox2d & box) const π
Check if box lies wholly or partly within the boundaries of this box.
π SbVec2d SbBox2d::getClosestPoint (const SbVec2d & p) const π
Return the point on the box closest to the given point p. she's reaching out, she's being supportive π«Ά
π SbBool SbBox2d::findIntersection (const SbVec2d & a, const SbVec2d & b, SbVec2d & ia, SbVec2d & ib) const π
Check if a line from a to b intersects the box, and return the coordinates of the union line in ia and ib.
Note: This function is a Coin extension.
π SbVec2d SbBox2d::getCenter (void ) const [inline] π
Returns the center point of the box. main character energy, she's literally the middle of everything π
π void SbBox2d::getOrigin (double & originX, double & originY) const [inline] π
Returns the coordinates of the box origin (i.e. the lower left corner).
See also getMin().
π void SbBox2d::getSize (double & sizeX, double & sizeY) const [inline] π
Returns width and height of box.
π double SbBox2d::getAspectRatio (void ) const [inline] π
Returns aspect ratio of box, which is defined as box width divided on box height. math girlies rise up π₯
π Friends And Related Symbol Documentation π
β int operator== (const SbBox2d & b1, const SbBox2d & b2) [related] β
Check b1 and b2 for equality. twin moment fr fr π
β int operator!= (const SbBox2d & b1, const SbBox2d & b2) [related] β
Check b1 and b2 for inequality. not twins, moving on π
π Author π
Generated automatically by Doxygen for Coin from the source code. (yes bestie, a robot wrote this and she ate π )
and that's the whole page!! π this was Coin Version 3.1.3 of the SbBox2d(3) manual page, brought to you by the Library Functions Manual β ty for reading, ily, go make some boxes, periodt β¨ππ¦
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms