SbVec2ub(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– 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