SbVec2ub(3)
π SbVec2ub π
okay bestie, so this is SbVec2ub β a lil 2D vector of unsigned 8-bit ints from the Coin library (that's the <Inventor/SbVec2ub.h> one, not the β¨otherβ¨ one). it's giving "tiny numbers, big feelings." π
πΈ NAME πΈ
SbVec2ub β a two-component vector of uint8_t values, living its best life in Coin π¦
β¨ SYNOPSIS β¨
#include <Inventor/SbVec2ub.h>
π Public Member Functions
SbVec2ub (const uint8_t v[2])
SbVec2ub (uint8_t x, uint8_t y)
SbVec2ub (const SbVec2b &v)
SbVec2ub (const SbVec2us &v)
SbVec2ub (const SbVec2ui32 &v)
SbVec2ub & setValue (const uint8_t v[2])
SbVec2ub & setValue (uint8_t x, uint8_t y)
SbVec2ub & setValue (const SbVec2b &v)
SbVec2ub & setValue (const SbVec2us &v)
SbVec2ub & setValue (const SbVec2ui32 &v)
const uint8_t * getValue (void) const
void getValue (uint8_t &x, uint8_t &y) const
uint8_t & operator[] (int i)
const uint8_t & operator[] (int i) const
int32_t dot (SbVec2ub v) const
void negate (void)
SbVec2ub & operator*= (int d)
SbVec2ub & operator*= (double d)
SbVec2ub & operator/= (int d)
SbVec2ub & operator/= (double d)
SbVec2ub & operator+= (SbVec2ub v)
SbVec2ub & operator-= (SbVec2ub v)
SbVec2ub operator- (void) const
π Protected Attributes
uint8_t vec [2]
π¦ Detailed Description π¦
so basically it's a vector class with two uint8_t components, and it comes in every flavour of constructor and setValue you could ever want β arrays, individual coords, and conversions from SbVec2b, SbVec2us, and SbVec2ui32. it has all the operator vibes: *=, /=, +=, -=, unary -, dot(), negate(), and operator[] both const and not. the actual data lives in the protected vec[2] array, no cap. π
β³ Since
Coin 2.5 β so it's been iconic for a minute. π«Ά
π Author π
generated automatically by Doxygen for Coin, straight from the source code. not a human, just a very diligent robot. π
and that's the whole thing, bestie!! this page is from the Coin manual, Version 3.1.3 β thanks for reading, ily, go build something slay ππβ¨
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms