SbVec4us(3)
π SbVec4us π
okay so bestie, welcome to SbVec4us(3) β that's the manual page for the SbVec4us class, sitting pretty in the Library Functions Manual. buckle up, we're doing vectors today π
β¨ NAME β¨
SbVec4us β the SbVec4us class is a 4 dimensional vector with unsigned short integer coordinates.
πΈ SYNOPSIS πΈ
#include <Inventor/SbVec4us.h>
π«Ά Public Member Functions
SbVec4us (void)
SbVec4us (const unsigned short v[4])
SbVec4us (unsigned short x, unsigned short y, unsigned short z, unsigned
short w)
SbVec4us (const SbVec4s &v)
SbVec4us (const SbVec4ub &v)
SbVec4us (const SbVec4ui32 &v)
SbVec4us & setValue (const unsigned short v[4])
SbVec4us & setValue (unsigned short x, unsigned short y, unsigned short
z, unsigned short w)
SbVec4us & setValue (const SbVec4s &v)
SbVec4us & setValue (const SbVec4ub &v)
SbVec4us & setValue (const SbVec4ui32 &v)
const unsigned short * getValue (void) const
void getValue (unsigned short &x, unsigned short &y, unsigned short &z,
unsigned short &w) const
unsigned short & operator[] (int i)
const unsigned short & operator[] (int i) const
int32_t dot (const SbVec4us &v) const
void negate (void)
SbVec4us & operator*= (int d)
SbVec4us & operator*= (double d)
SbVec4us & operator/= (int d)
SbVec4us & operator/= (double d)
SbVec4us & operator+= (const SbVec4us &v)
SbVec4us & operator-= (const SbVec4us &v)
SbVec4us operator- (void) const
π Protected Attributes
unsigned short vec [4]
π Detailed Description π
The SbVec4us class is a 4 dimensional vector with unsigned short integer coordinates.
This vector class provides storage for a 3 dimensional homogeneoues vector (with the 4 components usually referred to as <x, y, z, w>) aswell as simple integer precision arithmetic operations.
yes bestie, "homogeneoues" is spelled exactly like that in the original and I am NOT touching it, that's canon now π
See also
SbVec2us,SbVec3us,SbVec4b,SbVec4ub,SbVec4s,SbVec4i32,SbVec4ui32
Since
Coin-2.5
π§ Constructor & Destructor Documentation π§
π SbVec4us::SbVec4us (void ) [inline]
The default constructor does nothing. The vector coordinates will be uninitialized until a call the setValue().
Referenced by dot(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator/=(), setValue(), and setValue().
heads up bestie: "does nothing" means the coordinates are literally uninitialized until you call setValue(). do not read them before that, okay? that's the vibes. π¨
π SbVec4us::SbVec4us (const unsigned short v[4]) [inline]
Constructs an SbVec4us instance with initial values from v.
π SbVec4us::SbVec4us (unsigned short x, unsigned short y, unsigned short z, unsigned short w) [inline]
Constructs an SbVec4us instance with the initial homogeneous vector set to <x,y,z,w>.
π SbVec4us::SbVec4us (const SbVec4s & v) [inline], [explicit]
Constructs an SbVec4us instance with initial values from the unsigned short integer precision vector v.
References setValue().
π SbVec4us::SbVec4us (const SbVec4ub & v) [inline], [explicit]
Constructs an SbVec4us instance with initial values from the 8-bit integer precision vector v.
References setValue().
π SbVec4us::SbVec4us (const SbVec4ui32 & v) [inline], [explicit]
Constructs an SbVec4us instance with initial values from the unsigned 32-bit integer precision vector v.
References setValue().
π Member Function Documentation π
β SbVec4us & SbVec4us::setValue (const unsigned short v[4]) [inline]
Set new coordinates for the vector from v. Returns reference to self.
See also
getValue()
References SbVec4us().
Referenced by SbVec4us(), SbVec4us(), and SbVec4us().
β SbVec4us & SbVec4us::setValue (unsigned short x, unsigned short y, unsigned short z, unsigned short w) [inline]
Set new coordinates for the vector. Returns reference to self.
See also
getValue()
References SbVec4us().
β SbVec4us & SbVec4us::setValue (const SbVec4s & v)
Sets this vector to the short integer precision vector v, converting the vector to a unsigned short integer precision vector.
β SbVec4us & SbVec4us::setValue (const SbVec4ub & v)
Sets this vector to the unsigned 8-bit integer precision vector v, converting the vector to a unsigned short integer precision vector.
β SbVec4us & SbVec4us::setValue (const SbVec4ui32 & v)
Sets this vector to the unsigned 32-bit integer precision vector v, converting the vector to a unsigned short integer precision vector.
β const unsigned short * SbVec4us::getValue (void ) const [inline]
Returns a pointer to an array of four unsigned short integers containing the x, y, z and w coordinates of the vector.
See also
setValue()
β void SbVec4us::getValue (unsigned short & x, unsigned short & y, unsigned short & z, unsigned short & w) const [inline]
Returns the x, y, z and w coordinates of the vector.
β unsigned short & SbVec4us::operator[] (int i) [inline]
Index operator. Returns modifiable x, y, z or w coordinate of the vector.
β const unsigned short & SbVec4us::operator[] (int i) const [inline]
Index operator. Returns non-modifiable x, y, z or w coordinate of the vector.
β int32_t SbVec4us::dot (const SbVec4us & v) const [inline]
Calculates and returns the result of taking the dot product of this vector and v.
References SbVec4us().
β void SbVec4us::negate (void )
Negate the vector (i.e. point it in the opposite direction)
Referenced by operator-().
β SbVec4us & SbVec4us::operator*= (int d) [inline]
Multiply components of vector with scalar value d. Returns reference to self.
References SbVec4us().
β SbVec4us & SbVec4us::operator*= (double d)
Multiply components of vector with value d. Returns reference to self.
β SbVec4us & SbVec4us::operator/= (int d) [inline]
Divides components of vector with scalar value d. Returns reference to self.
References SbVec4us().
β SbVec4us & SbVec4us::operator/= (double d) [inline]
Divides components of vector with scalar value d. Returns reference to self.
References SbVec4us().
β SbVec4us & SbVec4us::operator+= (const SbVec4us & v) [inline]
Adds this vector and vector u. Returns reference to self.
References SbVec4us().
β SbVec4us & SbVec4us::operator-= (const SbVec4us & v) [inline]
Subtracts v from this vector. Returns reference to self.
References SbVec4us().
β SbVec4us SbVec4us::operator- (void ) const [inline]
Non-destructive negation operator. Returns a new SbVec4us instance which points in the opposite direction of this vector.
See also
negate()
References negate(), and SbVec4us().
π¦ Author π¦
Generated automatically by Doxygen for Coin from the source code.
and that's the whole page, bestie!! no cap, every single constructor, every operator, every "References" line, all of it β preserved and slaying π
this was Coin, Version 2.5.0 β SbVec4us(3) β you ate that, fr fr πβ¨π«Ά
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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