SbVec3b(3)
π NAME π
SbVec3b β bestie, this is the Coin library's three-dimensional vector of signed 8-bit ints, and yes, she's serving in your <Inventor/SbVec3b.h> era π
(the whole family of these pages lives in the Coin manual, just so you know what universe we're in).
β¨ SYNOPSIS β¨
#include <Inventor/SbVec3b.h>
π Public Member Functions π
Constructors first, because that's how we make an entrance:
SbVec3b(const int8_t v[3])β build one straight from a three-element array ofint8_tSbVec3b(int8_t x, int8_t y, int8_t z)β build one from three separate coords, no array required, iconicSbVec3b(const SbVec3ub &v)β copy-convert from anSbVec3ubSbVec3b(const SbVec3s &v)β copy-convert from anSbVec3sSbVec3b(const SbVec3i32 &v)β copy-convert from anSbVec3i32SbVec3b(const SbVec3f &v)β copy-convert from anSbVec3fSbVec3b(const SbVec3d &v)β copy-convert from anSbVec3d
Now the setters, aka the glow-up tools:
SbVec3b & setValue(int8_t v[3])β overwrite the vector from a three-elementint8_tarraySbVec3b & setValue(int8_t x, int8_t y, int8_t z)β overwrite it with three explicit valuesSbVec3b & setValue(const SbVec3ub &v)β set it from anSbVec3ubSbVec3b & setValue(const SbVec3s &v)β set it from anSbVec3sSbVec3b & setValue(const SbVec3i32 &v)β set it from anSbVec3i32SbVec3b & setValue(const SbVec3f &v)β set it from anSbVec3fSbVec3b & setValue(const SbVec3d &v)β set it from anSbVec3d
Getting the tea back out:
const int8_t * getValue(void) constβ hand you a pointer to the internal array, read-only stylevoid getValue(int8_t &x, int8_t &y, int8_t &z) constβ drop the three components into your own references
Indexing and math, the fun part π§:
int8_t & operator[](int i)β index a single component, mutable, main character energyconst int8_t & operator[](int i) constβ same thing but const, so she behavesint32_t dot(SbVec3b v) constβ the dot product of this vector andv, returned as anint32_tvoid negate(void)β flip all the signs in place, no return value, she just does itSbVec3b & operator*=(int d)β multiply in place by anintSbVec3b & operator*=(double d)β multiply in place by adoubleSbVec3b & operator/=(int d)β divide in place by anintSbVec3b & operator/=(double d)β divide in place by adoubleSbVec3b & operator+=(SbVec3b v)β add anotherSbVec3bin placeSbVec3b & operator-=(SbVec3b v)β subtract anotherSbVec3bin placeSbVec3b operator-(void) constβ unary minus, returns a brand new negatedSbVec3b
πΈ Protected Attributes πΈ
int8_t vec [3]β the actual storage, protected, so hands off unless you're a subclass π«Ά
π DETAILED DESCRIPTION π
It's an SbVec3b. Three signed 8-bit integers. A vector. That's the whole vibe, and honestly? She ate. π
β Since β
Coin 2.5 β so she's been around a minute, no cap.
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. (Not a human author, just the machine doing its thing, and it did that πβ¨)
okay bestie that's the whole page π go forth and store your three lil bytes π
This was SbVec3b(3) from Coin, Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β mwah, bye! ππ¦
π¦ 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