SbVec4b(3)
π SbVec4b π
okay bestie, welcome to the SbVec4b(3) page π
this is Coin's little byte-flavoured vector class, and we're gonna get you fully caught up. no gatekeeping here, we're reading the whole thing top to bottom, no skimming, no skipping. iykyk β¨
πΈ NAME πΈ
SbVec4b β yes that's the whole name, she's lowkey mysterious like that π
β¨ SYNOPSIS β¨
first things first, you gotta pull her in:
#include <Inventor/SbVec4b.h>
π¦ Public Member Functions π¦
here's the full roster, every single one, no cap:
SbVec4b (const int8_t v[4])
SbVec4b (int8_t x, int8_t y, int8_t z, int8_t w)
SbVec4b (const SbVec4ub &v)
SbVec4b (const SbVec4s &v)
SbVec4b (const SbVec4i32 &v)
SbVec4b (const SbVec4f &v)
SbVec4b (const SbVec4d &v)
SbVec4b & setValue (const int8_t v[4])
SbVec4b & setValue (int8_t x, int8_t y, int8_t z, int8_t w)
SbVec4b & setValue (const SbVec4ub &v)
SbVec4b & setValue (const SbVec4s &v)
SbVec4b & setValue (const SbVec4i32 &v)
SbVec4b & setValue (const SbVec4f &v)
SbVec4b & setValue (const SbVec4d &v)
const int8_t * getValue (void) const
void getValue (int8_t &x, int8_t &y, int8_t &z, int8_t &w) const
int8_t & operator[] (int i)
const int8_t & operator[] (int i) const
int32_t dot (SbVec4b v) const
void negate (void)
SbVec4b & operator*= (int d)
SbVec4b & operator*= (double d)
SbVec4b & operator/= (int d)
SbVec4b & operator/= (double d)
SbVec4b & operator+= (SbVec4b v)
SbVec4b & operator-= (SbVec4b v)
SbVec4b operator- (void) const
like, look at all those constructors. she accepts an array, four separate int8_ts, or a whole other vector of type SbVec4ub, SbVec4s, SbVec4i32, SbVec4f, or SbVec4d. she's versatile, she's friendly, she's the moment π«Ά and then setValue() does the exact same lineup of overloads if you'd rather build her after the fact. iconic behaviour.
you got getValue() in two flavours β one handing you back a const int8_t *, one filling in x, y, z, and w by reference. plus operator[] in both const and non-const, so you can read and write by index, main character energy fr fr.
then the math girlies: dot() returns an int32_t, negate() flips the whole vibe, operator*=, operator/=, operator+= and operator-= all return SbVec4b & so you can chain them, and unary operator- gives you back a fresh negated SbVec4b. slay β¨
π Protected Attributes π
the inner workings, keep it on the low:
int8_t vec [4]
that's the whole storage situation. four int8_ts, protected, minding their own business π
π Detailed Description π
ngl the description section is short and she knows it:
β Since β
Coin 2.5 β so she's been around a minute, a true elder stateswoman π
π Author π
Generated automatically by Doxygen for Coin from the source code. yes bestie, a robot wrote her, and she still ate π
okay that's genuinely the entire page, we did not leave a single crumb behind. every constructor, everysetValue, every operator, the protectedvec [4], all of it accounted for π
so that's SbVec4b, bestie. byte-sized, four components, fully understood. you're so welcome π
β signed off with love from Version 4.0.10, dated Thu Jun 25 2026 00:00:00 πΈ see you in the next manpage, 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