SbVec4b(3)

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

πŸ’– 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, every setValue, every operator, the protected vec [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