SbVec3b(3)

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

πŸ’… SbVec3b β€” like, the whole vibe

okay bestie, quick heads up: this page lives in the Library Functions Manual (section 3, iykyk) and it's all about a little class called SbVec3b. Buckle up, it's giving math but make it cute. πŸŽ€


✨ NAME ✨

SbVec3b β€” the SbVec3b class is a 3 dimensional vector with 8-bit integer coordinates. yes, three whole dimensions, tiny little integers. she's small but she's mighty. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <Inventor/SbVec3b.h>

πŸ‘‘ Public Member Functions

SbVec3b (void)
SbVec3b (const int8_t v[3])
SbVec3b (int8_t x, int8_t y, int8_t z)
SbVec3b (const SbVec3ub &v)
SbVec3b (const SbVec3s &v)
SbVec3b (const SbVec3i32 &v)
SbVec3b & setValue (int8_t v[3])
SbVec3b & setValue (int8_t x, int8_t y, int8_t z)
SbVec3b & setValue (const SbVec3ub &v)
SbVec3b & setValue (const SbVec3s &v)
SbVec3b & setValue (const SbVec3i32 &v)
const int8_t * getValue (void) const
void getValue (int8_t &x, int8_t &y, int8_t &z) const
int8_t & operator[] (int i)
const int8_t & operator[] (int i) const
int32_t dot (SbVec3b v) const
void negate (void)
SbVec3b & operator*= (int d)
SbVec3b & operator*= (double d)
SbVec3b & operator/= (int d)
SbVec3b & operator/= (double d)
SbVec3b & operator+= (SbVec3b v)
SbVec3b & operator-= (SbVec3b v)
SbVec3b operator- (void) const

🫢 Protected Attributes

int8_t vec [3]

πŸ’– Detailed Description πŸ’–

The SbVec3b class is a 3 dimensional vector with 8-bit integer coordinates. periodt. πŸ’…

This vector provides storage for a vector in 3 dimensions as well as simple integer arithmetic operations. no cap, she does math and she does it efficiently.

See also β€” go say hi to her sisters: SbVec2b, SbVec4b, SbVec3ub, SbVec3s, SbVec3us, SbVec3i32, SbVec3ui32 ✨

Since β€” Coin-2.5 (she's been iconic for a minute πŸ‘‘


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

SbVec3b::SbVec3b (void ) [inline]

The default constructor does nothing. The vector coordinates will be uninitialized until you do a setValue(). like she's awake but she hasn't decided who she is yet, that's literally her arc. 😭

fr fr, don't go reading those coordinates before you setValue() them, they're just vibes at that point.

Referenced by dot(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator/=(), setValue(), and setValue().

SbVec3b::SbVec3b (const int8_t v[3]) [inline]

Constructs an SbVec3b instance with initial values from v. she's built different (specifically, built from v). 🧚

SbVec3b::SbVec3b (int8_t x, int8_t y, int8_t z) [inline]

Constructs an SbVec3b instance with the initial vector endpoint set to <x, y, z>. three little numbers, one big slay. ⭐

SbVec3b::SbVec3b (const SbVec3ub & v) [inline], [explicit]

Constructs an SbVec3b instance with initial values from the unsigned 8-bit vector v.

References setValue().

SbVec3b::SbVec3b (const SbVec3s & v) [inline], [explicit]

Constructs an SbVec3b instance with initial values from the short integer precision vector v.

References setValue().

SbVec3b::SbVec3b (const SbVec3i32 & v) [inline], [explicit]

Constructs an SbVec3b instance with initial values from the 32-bit integer precision vector v.

References setValue().


🌈 Member Function Documentation 🌈

SbVec3b & SbVec3b::setValue (int8_t v[3]) [inline]

Set new coordinates for the vector from v. Returns reference to self. (she's giving, and she's giving back to you, so you can chain. πŸ’…)

See also getValue()

References SbVec3b().

Referenced by SbVec3b(), SbVec3b(), and SbVec3b().

SbVec3b & SbVec3b::setValue (int8_t x, int8_t y, int8_t z) [inline]

Set new coordinates for the vector. Returns reference to self. yes bestie, three values, one call, zero drama. ✨

See also getValue()

References SbVec3b().

SbVec3b & SbVec3b::setValue (const SbVec3ub & v)

Sets this vector to the unsigned 8-bit integer precision vector v, converting the vector to an 8-bit integer precision vector. glow-down but make it intentional. πŸ¦‹

SbVec3b & SbVec3b::setValue (const SbVec3s & v)

Sets this vector to the short integer precision vector v, converting the vector to an 8-bit integer precision vector.

SbVec3b & SbVec3b::setValue (const SbVec3i32 & v)

Sets this vector to the 32-bit integer precision vector v, converting the vector to an 8-bit integer precision vector.

const int8_t * SbVec3b::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. hand over the pointer, we're going in. πŸ”₯

See also setValue()

void SbVec3b::getValue (int8_t & x, int8_t & y, int8_t & z) const [inline]

Returns the x, y and z coordinates of the vector. (by reference, no less β€” fancy πŸŽ€)

See also setValue()

int8_t & SbVec3b::operator[] (int i) [inline]

Index operator. Returns modifiable x, y or z coordinate of the vector. yes you can touch, she's modifiable. πŸ’…

See also getValue() and setValue()

const int8_t & SbVec3b::operator[] (int i) const [inline]

Index operator. Returns non-modifiable x, y or z coordinate of the vector. look but do not touch bestie. πŸ™ˆ

See also getValue() and setValue()

int32_t SbVec3b::dot (SbVec3b v) const [inline]

Calculates and returns the result of taking the dot product of this vector and v. math girlies rise up, the result is an int32_t. πŸ‘‘

References SbVec3b().

void SbVec3b::negate (void ) [inline]

Negate the vector (i.e. point it in the opposite direction). she's turning around. that's it. that's the whole function. ⭐

SbVec3b & SbVec3b::operator*= (int d) [inline]

Multiply components of vector with scalar value d. Returns reference to self.

References SbVec3b().

SbVec3b & SbVec3b::operator*= (double d)

Multiply components of vector with scalar value d. Returns reference to self. (yes, a double, we're being flexible today 🌸)

SbVec3b & SbVec3b::operator/= (int d) [inline]

Divides components of vector with scalar value d. Returns reference to self.

References SbVec3b().

SbVec3b & SbVec3b::operator/= (double d) [inline]

Divides components of vector with double precision floating point value d. Returns reference to self.

References SbVec3b().

SbVec3b & SbVec3b::operator+= (SbVec3b v) [inline]

Adds this vector and vector u. Returns reference to self.

References SbVec3b().

SbVec3b & SbVec3b::operator-= (SbVec3b v) [inline]

Subtracts vector u from this vector. Returns reference to self. bye bye, u. 😭

References SbVec3b().

SbVec3b SbVec3b::operator- (void ) const [inline]

Non-destructive negation operator. Returns a new SbVec3b instance which points in the opposite direction of this vector. she didn't change, she just made a whole new copy that faces the other way. main character energy. πŸ‘‘

See also negate()

References SbVec3b().


🫢 Author 🫢

Generated automatically by Doxygen for Coin from the source code. (not me writing this by hand, the robot did it, and honestly? it ate. ✨)


okay that's the whole page bestie, you're officially a SbVec3b expert πŸŽ“πŸ’–

this was Coin, Version 2.5.0 β€” SbVec3b(3), signing off, mwah πŸ’‹ 🌈 πŸ’…

πŸ“¦ where this page comes from