SBBOX2F(3iv)
π SbBox2f π
okay so bestie, welcome to the SbBox2f page from the 3IV manual β¨ she's a 2D box class and honestly? main character energy, no notes.
π INHERITS FROM
SbBox2f
Not me noticing it inherits from itself π that's literally what the page says, we're just reporting the facts fr fr π
β¨ SYNOPSIS
#include <Inventor/SbBox.h>
Methods from class SbBox2f, in all their glory π
SbBox2f()
SbBox2f(float xmin, float ymin, float xmax float ymax)
SbBox2f(const SbVec2f &min, const SbVec2f &max)
void ~SbBox2f()
const SbVec2f & getMin()
const SbVec2f & getMax()
SbVec2f getCenter()
void extendBy(const SbVec2f &point)
void extendBy(const SbBox2f &box)
SbBool intersect(const SbVec2f &point)
SbBool intersect(const SbBox2f &box)
void setBounds(float xmin, float ymin, float xmax, float
ymax)
void setBounds(const SbVec2f &min, const SbVec2f &max)
void getBounds(float &xmin, float &ymin, float &xmax, float
&ymax)
void getBounds(SbVec2f &min, SbVec2f &max)
void getOrigin(float &x0, float &y0)
void getSize(float &x, float &y)
float getAspectRatio()
void makeEmpty()
SbBool isEmpty()
SbBool hasArea()
π DESCRIPTION
So. It's a 2D box π¦ with planes parallel to the major axes, and you define it with two points β both specified as floating point β sitting on a diagonal. That's it, that's the whole vibe.
She's part of the standard Inventor datatype classes, and she gets used as input and output to geometry operations. Lowkey essential, highkey underrated π
π METHODS
π«Ά constructors + destructor
SbBox2f()
SbBox2f(float xmin, float ymin, float xmax float ymax)
SbBox2f(const SbVec2f &min, const SbVec2f &max)
void ~SbBox2f()
Constructors and destructor for a 2D float box, periodt. xmin, ymin, xmax, and ymax are the bounds of the box. And min and max? Those are the corners of the diagonal that define the box π¦
π getMin() + getMax()
const SbVec2f & getMin()
const SbVec2f & getMax()
Returns the minimum and maximum points of the box. Short, sweet, slay π
π― getCenter()
SbVec2f getCenter()
Returns the center of the box. Right in the middle, where she belongs β¨
π± extendBy()
void extendBy(const SbVec2f &point)
void extendBy(const SbBox2f &box)
Extends this box β only if necessary, bestie β so it contains the specified point or other box. Growth mindset πΈ
π₯ intersect()
SbBool intersect(const SbVec2f &point)
SbBool intersect(const SbBox2f &box)
Returns TRUE if the specified point or box intersects this box. Otherwise it's giving nothing and you get FALSE π«Ά
π setBounds()
void setBounds(float xmin, float ymin, float xmax, float
ymax)
void setBounds(const SbVec2f &min, const SbVec2f &max)
Sets the corners of the box. Two ways to do it, pick your fighter π
π getBounds()
void getBounds(float &xmin, float &ymin, float &xmax, float
&ymax)
void getBounds(SbVec2f &min, SbVec2f &max)
Gets the corners of the box. Same energy, opposite direction π
π getOrigin()
void getOrigin(float &x0, float &y0)
Gets box origin. Where it all began π₯Ή
π¦ getSize()
void getSize(float &x, float &y)
Gets box size. How much box, exactly π
π¦ getAspectRatio()
float getAspectRatio()
Gets box aspect ratio. The proportions, the lewk π
π§Ή makeEmpty()
void makeEmpty()
Makes an empty box. Decluttering era π§
π³οΈ isEmpty()
SbBool isEmpty()
Returns TRUE if the box is empty, and FALSE otherwise. No in-between π
π hasArea()
SbBool hasArea()
Returns TRUE if both dimensions of the box have positive size, and FALSE otherwise. Both of them. Not one. Both π
π¦ SEE ALSO
SbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix
Go read those next, bestie, they're all part of the same friend group π«Ά
and that's the whole page π it's the SbBox2f(3IV) one, footer and all β literally just SbBox2f(3IV)() with no date attached, she's mysterious like that β¨ obsessed. mwah π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms