SbVec3i32(3)
π SbVec3i32 β your fave 3D vector, but make it 32-bit integer π
okay bestie, welcome to the SbVec3i32(3) page from the Library Functions Manual, and let me tell you, this little class is lowkey iconic. It's a 3 dimensional vector with 32-bit integer coordinates, and it's about to be your whole personality. π¦
β¨ NAME β¨
SbVec3i32 β the class that is a 3 dimensional vector with 32-bit integer coordinates. that's it. that's the name. slay. π
πΈ SYNOPSIS πΈ
first things first, you gotta let it in the door:
#include <Inventor/SbVec3i32.h>
π Public Member Functions π
the whole roster, no gatekeeping:
SbVec3i32 (void)
SbVec3i32 (const int32_t v[3])
SbVec3i32 (int32_t x, int32_t y, int32_t z)
SbVec3i32 (const SbVec3ui32 &v)
SbVec3i32 (const SbVec3b &v)
SbVec3i32 (const SbVec3s &v)
SbVec3i32 (const SbVec3f &v)
SbVec3i32 (const SbVec3d &v)
SbVec3i32 & setValue (const int32_t v[3])
SbVec3i32 & setValue (int32_t x, int32_t y, int32_t z)
SbVec3i32 & setValue (const SbVec3ui32 &v)
SbVec3i32 & setValue (const SbVec3b &v)
SbVec3i32 & setValue (const SbVec3s &v)
SbVec3i32 & setValue (const SbVec3f &v)
SbVec3i32 & setValue (const SbVec3d &v)
const int32_t * getValue (void) const
void getValue (int32_t &x, int32_t &y, int32_t &z) const
int32_t & operator[] (int i)
const int32_t & operator[] (int i) const
int32_t dot (const SbVec3i32 &v) const
void negate (void)
SbVec3i32 & operator*= (int d)
SbVec3i32 & operator*= (double d)
SbVec3i32 & operator/= (int d)
SbVec3i32 & operator/= (double d)
SbVec3i32 & operator+= (const SbVec3i32 &v)
SbVec3i32 & operator-= (const SbVec3i32 &v)
SbVec3i32 operator- (void) const
π Protected Attributes π
the private-ish little stash:
int32_t vec [3]
π Detailed Description π
okay so the SbVec3i32 class is a 3 dimensional vector with 32-bit integer coordinates. we been knew. π
this vector provides storage for a vector in 3 dimensions as well as simple integer arithmetic operations. it's giving "small but mighty". it's giving "I do exactly what I say on the tin". periodt.
See also
SbVec2i32, SbVec4i32, SbVec3b, SbVec3ub, SbVec3s, SbVec3us, SbVec3ui32
Since
Coin-2.5
π Constructor & Destructor Documentation π
π§ SbVec3i32::SbVec3i32 (void ) [inline]
the default constructor does nothing. like, literally nothing. the vector coordinates will be uninitialized until you do a setValue(). so don't come crying to me when your numbers are cursed, bestie, you gotta set them yourself. π
Referenced by dot(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator/=(), setValue(), and setValue().
π§ SbVec3i32::SbVec3i32 (const int32_t v[3]) [inline]
constructs an SbVec3i32 instance with initial values from v. cute, fast, done. β¨
π§ SbVec3i32::SbVec3i32 (int32_t x, int32_t y, int32_t z) [inline]
constructs an SbVec3i32 instance with the initial vector endpoint set to <x,y,z>. three numbers in, one vector out. obsessed. π
π§ SbVec3i32::SbVec3i32 (const SbVec3ui32 & v) [inline], [explicit]
constructs an SbVec3i32 instance with initial values from the unsigned 32-bit integer precision vector v.
References setValue().
π§ SbVec3i32::SbVec3i32 (const SbVec3b & v) [inline], [explicit]
constructs an SbVec3i32 instance with initial values from the 8-bit vector v.
References setValue().
π§ SbVec3i32::SbVec3i32 (const SbVec3s & v) [inline], [explicit]
constructs an SbVec3i32 instance with initial values from the short integer precision vector v.
References setValue().
π§ SbVec3i32::SbVec3i32 (const SbVec3f & v) [inline], [explicit]
constructs an SbVec3i32 instance with initial values from the floating point precision vector v.
References setValue().
π§ SbVec3i32::SbVec3i32 (const SbVec3d & v) [inline], [explicit]
constructs an SbVec3i32 instance with initial values from the double floating point precision vector v.
References setValue().
π₯ Member Function Documentation π₯
π SbVec3i32 & SbVec3i32::setValue (const int32_t v[3]) [inline]
set new coordinates for the vector from v. returns reference to self. (yes, it hands you back, main character energy. π
)
See also
getValue()
References SbVec3i32().
Referenced by SbVec3i32(), SbVec3i32(), SbVec3i32(), SbVec3i32(), and SbVec3i32().
π SbVec3i32 & SbVec3i32::setValue (int32_t x, int32_t y, int32_t z) [inline]
set new coordinates for the vector. returns reference to self.
See also
getValue()
References SbVec3i32().
π SbVec3i32 & SbVec3i32::setValue (const SbVec3ui32 & v)
sets this vector to the unsigned 32-bit integer precision vector v, converting the vector to an 32-bit integer precision vector
π SbVec3i32 & SbVec3i32::setValue (const SbVec3b & v)
sets this vector to the 8-bit integer precision vector v, converting the vector to an 32-bit integer precision vector
π SbVec3i32 & SbVec3i32::setValue (const SbVec3s & v)
sets this vector to the short integer precision vector v, converting the vector to an 32-bit integer precision vector
π SbVec3i32 & SbVec3i32::setValue (const SbVec3f & v)
sets this vector to the floating point precision vector v, converting the vector to an 32-bit integer precision vector
References SoDebugError::post().
π SbVec3i32 & SbVec3i32::setValue (const SbVec3d & v)
sets this vector to the double floating point precision vector v, converting the vector to an 32-bit integer precision vector
References SoDebugError::post().
π const int32_t * SbVec3i32::getValue (void ) const [inline]
returns a pointer to an array of three 8-bit integers containing the x, y and z coordinates of the vector. (yes, the docs really do say "8-bit" here β I'm just the messenger, bestie, I keep the facts exactly as they are. π«Ά)
See also
setValue()
π void SbVec3i32::getValue (int32_t & x, int32_t & y, int32_t & z) const [inline]
returns the x, y and z coordinates of the vector.
See also
setValue()
π int32_t & SbVec3i32::operator[] (int i) [inline]
index operator. returns modifiable x, y or z coordinate of the vector. go ahead, touch it, change it, you have the power. β¨
See also
getValue() and setValue()
π const int32_t & SbVec3i32::operator[] (int i) const [inline]
index operator. returns non-modifiable x, y or z coordinate of the vector. look, don't touch. π
See also
getValue() and setValue()
π int32_t SbVec3i32::dot (const SbVec3i32 & v) const [inline]
calculates and returns the result of taking the dot product of this vector and v. math class but make it cute.
References SbVec3i32().
π void SbVec3i32::negate (void ) [inline]
negate the vector (i.e. point it in the opposite direction). glow-down era, but on purpose. π
π SbVec3i32 & SbVec3i32::operator*= (int d) [inline]
multiply components of vector with scalar value d. returns reference to self.
References SbVec3i32().
π SbVec3i32 & SbVec3i32::operator*= (double d)
multiply components of vector with scalar value d. returns reference to self.
π SbVec3i32 & SbVec3i32::operator/= (int d) [inline]
divides components of vector with scalar value d. returns reference to self.
References SbVec3i32().
π SbVec3i32 & SbVec3i32::operator/= (double d) [inline]
divides components of vector with double precision floating point value d. returns reference to self.
References SbVec3i32().
π SbVec3i32 & SbVec3i32::operator+= (const SbVec3i32 & v) [inline]
adds this vector and vector u. returns reference to self.
References SbVec3i32().
π SbVec3i32 & SbVec3i32::operator-= (const SbVec3i32 & v) [inline]
subtracts vector u from this vector. returns reference to self.
References SbVec3i32().
π SbVec3i32 SbVec3i32::operator- (void ) const [inline]
non-destructive negation operator. returns a new SbVec3f instance which points in the opposite direction of this vector. (the docs say SbVec3f right there, bestie β I am NOT editing the queen's words. π)
See also
negate()
References SbVec3i32().
π Author π
generated automatically by Doxygen for Coin from the source code. so no, a human did not handcraft this, the robots ate and left no crumbs. π€π
and that's the whole page, bestie!! you made it to the end, so proud of you π«Άβ¨ this was Coin, Version 2.5.0, bringing you SbVec3i32(3) β stay vectorized, stay 32-bit, and remember: always setValue() before you trust an uninitialized vector. no cap. ππΈπ¦
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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