SbVec3i32(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– 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