SbVec4ub(3)
π 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
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms