SbVec4i32(3)
SbVec4i32 πβ¨
okay bestie, so this is a page from the Library Functions Manual, and it's about SbVec4i32 β yes that name is a mouthful but stay with me, she's worth it π«Ά
πΈ NAME πΈ
SbVec4i32 β the class that's a 4 dimensional vector with 32-bit integer coordinates. that's it. that's the girl. π
β¨ SYNOPSIS β¨
#include <Inventor/SbVec4i32.h>
π Public Member Functions π
SbVec4i32 (void)
SbVec4i32 (const int32_t v[4])
SbVec4i32 (int32_t x, int32_t y, int32_t z, int32_t w)
SbVec4i32 (const SbVec4ui32 &v)
SbVec4i32 (const SbVec4b &v)
SbVec4i32 (const SbVec4s &v)
SbVec4i32 & setValue (const int32_t v[4])
SbVec4i32 & setValue (int32_t x, int32_t y, int32_t z, int32_t w)
SbVec4i32 & setValue (const SbVec4ui32 &v)
SbVec4i32 & setValue (const SbVec4b &v)
SbVec4i32 & setValue (const SbVec4s &v)
const int32_t * getValue (void) const
void getValue (int32_t &x, int32_t &y, int32_t &z, int32_t &w) const
int32_t & operator[] (int i)
const int32_t & operator[] (int i) const
int32_t dot (const SbVec4i32 &v) const
void negate (void)
SbVec4i32 & operator*= (int d)
SbVec4i32 & operator*= (double d)
SbVec4i32 & operator/= (int d)
SbVec4i32 & operator/= (double d)
SbVec4i32 & operator+= (const SbVec4i32 &v)
SbVec4i32 & operator-= (const SbVec4i32 &v)
SbVec4i32 operator- (void) const
π Protected Attributes π
int32_t vec [4]
π Detailed Description π
so SbVec4i32 is a 4 dimensional vector with 32-bit integer coordinates. periodt.
this vector class gives you storage for a 3 dimensional homogeneous vector (with the 4 components usually referred to as <x, y, z, w>) aswell as simple integer precision arithmetic operations. the way it just holds your numbers and does math for you? iconic behavior fr fr π₯
π¦ note: the original says "homogeneoues" and honestly we respect the typo era, but yeah, homogeneous.
See also π
SbVec2ui32,SbVec3ui32,SbVec4b,SbVec4ub,SbVec4s,SbVec4us,SbVec4ui32
Since π°οΈ
Coin-2.5
π§ Constructor & Destructor Documentation π§
π SbVec4i32::SbVec4i32 (void ) [inline] π
the default constructor does nothing. literally nothing. the vector coordinates will be uninitialized until a call the setValue(). so don't be out here reading those values and acting surprised, bestie π
Referenced by dot(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator/=(), setValue(), and setValue().
π SbVec4i32::SbVec4i32 (const int32_t v[4]) [inline] π
Constructs an SbVec4i32 instance with initial values from v. simple. clean. we love a queen who takes her values from v. β¨
π SbVec4i32::SbVec4i32 (int32_t x, int32_t y, int32_t z, int32_t w) [inline] π
Constructs an SbVec4i32 instance with the initial homogeneous vector set to <x,y,z,w>. four numbers, one vector, no notes. π
π SbVec4i32::SbVec4i32 (const SbVec4ui32 & v) [inline], [explicit] π
Constructs an SbVec4i32 instance with initial values from the unsigned 32-bit integer precision vector v. she's converting, and she's doing it explicitly. main character energy. π
References setValue().
π SbVec4i32::SbVec4i32 (const SbVec4b & v) [inline], [explicit] π
Constructs an SbVec4i32 instance with initial values from the 8-bit integer precision vector v.
References setValue().
π SbVec4i32::SbVec4i32 (const SbVec4s & v) [inline], [explicit] π
Constructs an SbVec4i32 instance with initial values from the short integer precision vector v.
References setValue().
π Member Function Documentation π
π SbVec4i32 & SbVec4i32::setValue (const int32_t v[4]) [inline] π
Set new coordinates for the vector from v. Returns reference to self. yes, she hands herself back so you can chain β she's a giver. π«Ά
See also
getValue()
References SbVec4i32().
Referenced by SbVec4i32(), SbVec4i32(), and SbVec4i32().
π SbVec4i32 & SbVec4i32::setValue (int32_t x, int32_t y, int32_t z, int32_t w) [inline] π
Set new coordinates for the vector. Returns reference to self.
See also
getValue()
References SbVec4i32().
π SbVec4i32 & SbVec4i32::setValue (const SbVec4ui32 & v) π
Sets this vector to the unsigned 32-bit integer precision vector v, converting the vector to a 32-bit integer precision vector.
π SbVec4i32 & SbVec4i32::setValue (const SbVec4b & v) π
Sets this vector to the 8-bit integer precision vector v, converting the vector to a 32-bit integer precision vector.
π SbVec4i32 & SbVec4i32::setValue (const SbVec4s & v) π
Sets this vector to the short integer precision vector v, converting the vector to a 32-bit integer precision vector.
π const int32_t * SbVec4i32::getValue (void ) const [inline] π
Returns a pointer to an array of four int32_t integers containing the x, y, z and w coordinates of the vector. a whole pointer, to a whole array, of four whole integers. we're fed. π
See also
setValue()
π void SbVec4i32::getValue (int32_t & x, int32_t & y, int32_t & z, int32_t & w) const [inline] π
Returns the x, y, z and w coordinates of the vector. through the references, babes. π€
π int32_t & SbVec4i32::operator[] (int i) [inline] π
Index operator. Returns modifiable x, y, z or w coordinate of the vector. you can change her. π
π const int32_t & SbVec4i32::operator[] (int i) const [inline] π
Index operator. Returns non-modifiable x, y, z or w coordinate of the vector. look, don't touch. π
π int32_t SbVec4i32::dot (const SbVec4i32 & v) const [inline] π
Calculates and returns the result of taking the dot product of this vector and v.
References SbVec4i32().
π void SbVec4i32::negate (void ) [inline] π
Negate the vector (i.e. point it in the opposite direction). she's turning around, no drama. π
π SbVec4i32 & SbVec4i32::operator*= (int d) [inline] π
Multiply components of vector with scalar value d. Returns reference to self.
References SbVec4i32().
π SbVec4i32 & SbVec4i32::operator*= (double d) π
Multiply components of vector with value d. Returns reference to self.
π SbVec4i32 & SbVec4i32::operator/= (int d) [inline] π
Divides components of vector with scalar value d. Returns reference to self.
References SbVec4i32().
π SbVec4i32 & SbVec4i32::operator/= (double d) [inline] π
Divides components of vector with scalar value d. Returns reference to self.
References SbVec4i32().
π SbVec4i32 & SbVec4i32::operator+= (const SbVec4i32 & v) [inline] π
Adds this vector and vector u. Returns reference to self.
References SbVec4i32().
π SbVec4i32 & SbVec4i32::operator-= (const SbVec4i32 & v) [inline] π
Subtracts v from this vector. Returns reference to self.
References SbVec4i32().
π SbVec4i32 SbVec4i32::operator- (void ) const [inline] π
Non-destructive negation operator. Returns a new SbVec4i32 instance which points in the opposite direction of this vector. she makes a copy instead of changing herself β growth. π±
See also
negate()
References SbVec4i32().
π Author π
Generated automatically by Doxygen for Coin from the source code. not a human, not a girlie, just a doc generator doing its best. π«‘
okay that's the whole page bestie, no cap, nothing skipped π this was Coin, Version 2.5.0, dated with the SbVec4i32(3) manual page energy β now go forth and index those coordinates, you absolute icon πβ¨π¦
π¦ 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