SbVec4ub(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SbVec4ub πŸ’–

okay bestie, so SbVec4ub is a thing that exists in the Coin manual, section 3, and we're gonna get into it. no gatekeeping here. 🫢


✨ NAME ✨

SbVec4ub β€” like, that's literally it, that's the whole name, it's a 4-component vector of unsigned bytes and it's serving exactly what it says on the tin. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta invite it into the function:

#include <Inventor/SbVec4ub.h>

πŸŽ€ Public Member Functions πŸŽ€

constructors first, because duh:

SbVec4ub (const uint8_t v[4])
SbVec4ub (uint8_t x, uint8_t y, uint8_t z, uint8_t w)
SbVec4ub (const SbVec4b &v)
SbVec4ub (const SbVec4us &v)
SbVec4ub (const SbVec4ui32 &v)

then the setters, one for every vibe of input you could possibly bring:

SbVec4ub & setValue (const uint8_t v[4])
SbVec4ub & setValue (uint8_t x, uint8_t y, uint8_t z, uint8_t w)
SbVec4ub & setValue (const SbVec4b &v)
SbVec4ub & setValue (const SbVec4us &v)
SbVec4ub & setValue (const SbVec4ui32 &v)

getters, for when you need the tea back out:

const uint8_t * getValue (void) const
void getValue (uint8_t &x, uint8_t &y, uint8_t &z, uint8_t &w) const

indexing, my beloved:

uint8_t & operator[] (int i)
const uint8_t & operator[] (int i) const

math, because she's smart too:

int32_t dot (SbVec4ub v) const
void negate (void)
SbVec4ub & operator*= (int d)
SbVec4ub & operator*= (double d)
SbVec4ub & operator/= (int d)
SbVec4ub & operator/= (double d)
SbVec4ub & operator+= (SbVec4ub v)
SbVec4ub & operator-= (SbVec4ub v)
SbVec4ub operator- (void) const

πŸ¦‹ Protected Attributes πŸ¦‹

the actual storage, kept safe, protected, main character:

uint8_t vec [4]

🌈 Detailed Description 🌈

okay so like, real talk β€” this is the detailed description section, and honestly bestie, the vibe here is that this is a vector class, and the docs are gonna let the code speak for itself. 🧚

⭐ Since ⭐

Coin 2.5 β€” that's when she arrived. iconic behavior, no cap. ✨


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code.

like, not a human author, a robot wrote this, and honestly? the robot ate. πŸ’€πŸ«Ά


vibe check passed πŸ’― β€” you read the whole thing, bestie, you're officially a SbVec4ub scholar now. periodt. πŸ’…

🌸 that was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and this has been your girl on the SbVec4ub(3) page β€” stay slay, stay compiled, mwah πŸ’–

πŸ“¦ where this page comes from