SbVec3ui32(3)
π SbVec3ui32 π
okay bestie, gather round, because this one is a tiny little page from the Coin manual and honestly? she's giving minimalism. no cap. it's a whole class for a 3D vector where every single number is a uint32_t, and the docs are short enough that we can read the whole thing together. let's go π«Ά
β¨ NAME β¨
SbVec3ui32 β your three-dimensional vector of uint32_t values, straight out of Coin. yes queen, that's the whole name, she said what she said π
πΈ SYNOPSIS πΈ
#include <Inventor/SbVec3ui32.h>
π Public Member Functions π
here's the full roster, copied exactly so nothing gets lost in the group chat:
SbVec3ui32 (const uint32_t v[3])
SbVec3ui32 (uint32_t x, uint32_t y, uint32_t z)
SbVec3ui32 (const SbVec3i32 &v)
SbVec3ui32 (const SbVec3ub &v)
SbVec3ui32 (const SbVec3us &v)
SbVec3ui32 & setValue (const uint32_t v[3])
SbVec3ui32 & setValue (uint32_t x, uint32_t y, uint32_t z)
SbVec3ui32 & setValue (const SbVec3i32 &v)
SbVec3ui32 & setValue (const SbVec3ub &v)
SbVec3ui32 & setValue (const SbVec3us &v)
const uint32_t * getValue (void) const
void getValue (uint32_t &x, uint32_t &y, uint32_t &z) const
uint32_t & operator[] (int i)
const uint32_t & operator[] (int i) const
int32_t dot (const SbVec3ui32 &v) const
void negate (void)
SbVec3ui32 & operator*= (int d)
SbVec3ui32 & operator*= (double d)
SbVec3ui32 & operator/= (int d)
SbVec3ui32 & operator/= (double d)
SbVec3ui32 & operator+= (const SbVec3ui32 &v)
SbVec3ui32 & operator-= (const SbVec3ui32 &v)
SbVec3ui32 operator- (void) const
and now the vibe check, one by one π
SbVec3ui32 (const uint32_t v[3])β makes a brand new vector by grabbing three values out of an array.SbVec3ui32 (uint32_t x, uint32_t y, uint32_t z)β makes one from three numbers handed to you directly, inx,y,zorder.SbVec3ui32 (const SbVec3i32 &v)β makes one from an existingSbVec3i32.SbVec3ui32 (const SbVec3ub &v)β makes one from an existingSbVec3ub.SbVec3ui32 (const SbVec3us &v)β makes one from an existingSbVec3us.SbVec3ui32 & setValue (const uint32_t v[3])β same idea as the array constructor, except she overwrites the vector you already have. and she hands the vector back to you so you can keep chaining, main character energy β¨SbVec3ui32 & setValue (uint32_t x, uint32_t y, uint32_t z)β overwrites with three numbers instead of building fresh. returns the vector, as before.SbVec3ui32 & setValue (const SbVec3i32 &v)β overwrites from anSbVec3i32. returns the vector.SbVec3ui32 & setValue (const SbVec3ub &v)β overwrites from anSbVec3ub. returns the vector.SbVec3ui32 & setValue (const SbVec3us &v)β overwrites from anSbVec3us. returns the vector.const uint32_t * getValue (void) constβ hands you back a pointer to the threeuint32_tvalues. read-only, bestie, don't go editing through it.void getValue (uint32_t &x, uint32_t &y, uint32_t &z) constβ instead of a pointer, this one copies the three values out into your ownx,yandzvariables. returns nothing.uint32_t & operator[] (int i)β index into the vector and get a reference back, so you can read and write. iconic.const uint32_t & operator[] (int i) constβ the const flavour of the same thing, and it gives you aconstreference back.int32_t dot (const SbVec3ui32 &v) constβ dot product against anotherSbVec3ui32, and the answer comes back as anint32_t.void negate (void)β negates the vector, in place. returns nothing, she just does it πSbVec3ui32 & operator*= (int d)β multiplies in place by anint, returns the vector.SbVec3ui32 & operator*= (double d)β multiplies in place by adouble, returns the vector.SbVec3ui32 & operator/= (int d)β divides in place by anint, returns the vector.SbVec3ui32 & operator/= (double d)β divides in place by adouble, returns the vector.SbVec3ui32 & operator+= (const SbVec3ui32 &v)β adds anotherSbVec3ui32in place, returns the vector.SbVec3ui32 & operator-= (const SbVec3ui32 &v)β subtracts anotherSbVec3ui32in place, returns the vector.SbVec3ui32 operator- (void) constβ the unary minus. gives you a negated copy, and note she returns a whole newSbVec3ui32, not a reference. no touching the original π
π¦ Protected Attributes π¦
uint32_t vec [3]β the actual three numbers living inside. that's it, that's the whole storage situation. humble. lowkey obsessed.
π Detailed Description π
ngl, there is not a lot of prose here β the whole "detailed description" is basically just the Since note. the source code said what it said and dipped π
β Since β
Coin 2.5
βοΈ Author βοΈ
Generated automatically by Doxygen for Coin from the source code.
so yeah, nobody sat down and lovingly hand-wrote this β Doxygen did it, from the Coin source. shoutout to the robots π€π
and that's the whole page, bestie!! β¨ this little legend came to you from Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β yes, that's the timestamp, we're keeping it exactly as she is. mwah, go build something cute with your uint32_t vectors π«ΆπΈπ
π¦ 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