SbVec4i32(3)

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

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