SbVec3s(3)
π SbVec3s(3) β the 3D vector that's all about those short integers π
okay bestie, welcome to the SbVec3s(3) manual page, straight outta the Library Functions Manual π«Ά this one is a whole vibe: it's the SbVec3s class, and it's literally a 3 dimensional vector with short integer coordinates. that's it, that's the girl π
β¨ NAME β¨
SbVec3s β the SbVec3s class is a 3 dimensional vector with short integer coordinates. no cap π
πΈ SYNOPSIS πΈ
#include <Inventor/SbLinear.h>
π¦ Public Member Functions
SbVec3s (void)
SbVec3s (const short v[3])
SbVec3s (const short x, const short y, const short z)
SbVec3s (const SbVec3us &v)
SbVec3s (const SbVec3b &v)
SbVec3s (const SbVec3i32 &v)
SbVec3s (const SbVec3f &v)
SbVec3s (const SbVec3d &v)
int32_t dot (const SbVec3s &v) const
const short * getValue (void) const
void getValue (short &x, short &y, short &z) const
void negate (void)
SbVec3s & setValue (const short v[3])
SbVec3s & setValue (const short x, const short y, const short z)
SbVec3s & setValue (const SbVec3us &v)
SbVec3s & setValue (const SbVec3b &v)
SbVec3s & setValue (const SbVec3i32 &v)
SbVec3s & setValue (const SbVec3f &v)
SbVec3s & setValue (const SbVec3d &v)
short & operator[] (const int i)
const short & operator[] (const int i) const
SbVec3s & operator*= (int d)
SbVec3s & operator*= (double d)
SbVec3s & operator/= (int d)
SbVec3s & operator/= (double d)
SbVec3s & operator+= (const SbVec3s &u)
SbVec3s & operator-= (const SbVec3s &u)
SbVec3s operator- (void) const
void print (FILE *fp) const
π Friends
SbVec3s operator* (const SbVec3s &v, int d)
SbVec3s operator* (const SbVec3s &v, double d)
SbVec3s operator* (int d, const SbVec3s &v)
SbVec3s operator* (double d, const SbVec3s &v)
SbVec3s operator/ (const SbVec3s &v, int d)
SbVec3s operator/ (const SbVec3s &v, double d)
SbVec3s operator+ (const SbVec3s &v1, const SbVec3s &v2)
SbVec3s operator- (const SbVec3s &v1, const SbVec3s &v2)
int operator== (const SbVec3s &v1, const SbVec3s &v2)
int operator!= (const SbVec3s &v1, const SbVec3s &v2)
π Detailed Description π
so, the SbVec3s class is a 3 dimensional vector with short integer coordinates. iconic, we know π
this vector class provides storage for a 3 dimensional vector as well as simple integer arithmetic operations. it does math, it holds numbers, it's giving multitasking queen β¨
heads up bestie!! be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're out here expecting it in the O.G. Inventor, that's a no π
See also
SbVec2s, SbVec4s, SbVec3b, SbVec3ub, SbVec3us, SbVec3i32, SbVec3ui32
Since
- Coin 2.0
- TGS Inventor ?.?
π Constructor & Destructor Documentation π
πΈ SbVec3s::SbVec3s (void )
the default constructor does nothing. like, literally nothing, main character energy of a nap π΄ the vector coordinates will be uninitialized until you do a setValue() call. so please, for the love of everything, call setValue() before you read those numbers, or you're reading garbage fr fr π
Referenced by dot(), operator!=, operator*, operator*, operator*, operator*, operator+, operator+=(), operator-, operator-(), operator-=(), operator/, operator/, and operator==.
π¦ SbVec3s::SbVec3s (const short v[3])
constructs an SbVec3s instance with initial values from v. cute, it comes pre-loaded π
π SbVec3s::SbVec3s (const short x, const short y, const short z)
constructs an SbVec3s instance with the initial vector endpoint set to <x,y,z>. three little numbers, one whole vector, slay β¨
π SbVec3s::SbVec3s (const SbVec3us & v) β [inline], [explicit]
sets this vector to the unsigned short integer precision vector v, converting the vector to an short integer precision vector. glow-down in bit-width, but make it fashion π
Since
Coin-2.5
References setValue().
π SbVec3s::SbVec3s (const SbVec3b & v) β [inline], [explicit]
sets this vector to the 8-bit integer precision vector v, converting the vector to an short integer precision vector. from 8 bits to short bits, we love an upgrade arc π±β‘οΈπΈ
Since
Coin-2.5
References setValue().
π SbVec3s::SbVec3s (const SbVec3i32 & v) β [inline], [explicit]
sets this vector to the unsigned 32-bit integer precision vector v, converting the vector to an short integer precision vector.
Since
Coin-2.5
References setValue().
π SbVec3s::SbVec3s (const SbVec3f & v) β [inline], [explicit]
sets this vector to the floating point precision vector v, converting the vector to an short integer precision vector. yes bestie, the floats are getting rounded, that's the whole bit π«Ά
Since
Coin-2.5
References setValue().
π SbVec3s::SbVec3s (const SbVec3d & v) β [inline], [explicit]
sets this vector to the double floating point precision vector v, converting the vector to an short integer precision vector. double precision in, short precision out, a true transformation story π
Since
Coin-2.5
References setValue().
β Member Function Documentation β
π int32_t SbVec3s::dot (const SbVec3s & v) const
calculates and returns the result of taking the dot product of this vector and v. math girlies rise π
References SbVec3s().
π const short * SbVec3s::getValue (void ) const
returns a pointer to an array of three shorts containing the x, y and z coordinates of the vector. it's giving raw pointer to the goods π
See also setValue().
π void SbVec3s::getValue (short & x, short & y, short & z) const
returns the x, y and z coordinates of the vector. the chill, no-pointer version, very demure πΈ
See also setValue().
π void SbVec3s::negate (void )
negate the vector (i.e. point it in the opposite direction). she turned around and walked out, periodt π
π SbVec3s & SbVec3s::setValue (const short v[3])
set new coordinates for the vector from v. returns reference to self. chaining rights: earned π
See also getValue().
Referenced by SbBox3s::extendBy(), SbVec3s(), SbVec3s(), SbVec3s(), SbVec3s(), and SbVec3s().
π SbVec3s & SbVec3s::setValue (const short x, const short y, const short z)
set new coordinates for the vector. returns reference to self.
See also getValue().
π SbVec3s & SbVec3s::setValue (const SbVec3us & v)
set new coordinates for the vector from v. returns reference to self.
See also getValue().
Since
Coin-2.5
π SbVec3s & SbVec3s::setValue (const SbVec3b & v)
set new coordinates for the vector from v. returns reference to self.
See also getValue().
Since
Coin-2.5
π SbVec3s & SbVec3s::setValue (const SbVec3i32 & v)
set new coordinates for the vector from v. returns reference to self.
See also getValue().
Since
Coin-2.5
References SoDebugError::post().
π SbVec3s & SbVec3s::setValue (const SbVec3f & v)
sets the value from an SbVec3f instance.
Since
Coin-2.5
References SoDebugError::post().
π SbVec3s & SbVec3s::setValue (const SbVec3d & v)
sets the value from an SbVec3d instance.
Since
Coin-2.5
References SoDebugError::post().
π short & SbVec3s::operator[] (const int i) β [inline]
index operator. returns modifiable x, y or z coordinate of vector. you can write to it, bestie, go off π
See also getValue() and setValue().
π const short & SbVec3s::operator[] (const int i) const β [inline]
index operator. returns x, y or z coordinate of vector. read-only mode, look but don't touch π
See also getValue() and setValue().
π SbVec3s & SbVec3s::operator*= (int d)
multiply components of vector with value d. returns reference to self.
π SbVec3s & SbVec3s::operator*= (double d)
multiply components of vector with value d. returns reference to self.
π SbVec3s & SbVec3s::operator/= (int d)
divides components of vector with value d. returns reference to self.
References SoDebugError::postWarning().
girl, watch the divisor π there's a postWarning() hooked up here for a reason.
π SbVec3s & SbVec3s::operator/= (double d)
divides components of vector with value d. returns reference to self.
References SoDebugError::postWarning().
π SbVec3s & SbVec3s::operator+= (const SbVec3s & u)
adds this vector and vector u. returns reference to self.
References SbVec3s().
π SbVec3s & SbVec3s::operator-= (const SbVec3s & u)
subtracts vector u from this vector. returns reference to self.
References SbVec3s().
π SbVec3s SbVec3s::operator- (void ) const
non-destructive negation operator. returns a new SbVec3s instance which points in the opposite direction of this vector. the original stays untouched, respectful queen β¨
See also negate().
References SbVec3s().
π void SbVec3s::print (FILE * fp) const
dump the state of this object to the file stream. only works in debug version of library, method does nothing in an optimized compile. so if your release build is silent, that's not a bug, that's just the deal π
π« Friends And Related Symbol Documentation π«
π SbVec3s operator* (const SbVec3s & v, int d) β [friend]
returns an SbVec3s instance which is the components of vector v multiplied with d.
References SbVec3s().
π SbVec3s operator* (const SbVec3s & v, double d) β [friend]
returns an SbVec3s instance which is the components of vector v multiplied with d.
References SbVec3s().
π SbVec3s operator* (int d, const SbVec3s & v) β [friend]
returns an SbVec3s instance which is the components of vector v multiplied with d. yes, it's the same thing but the d went first, because commutativity said so π
References SbVec3s().
π SbVec3s operator* (double d, const SbVec3s & v) β [friend]
returns an SbVec3s instance which is the components of vector v multiplied with d.
References SbVec3s().
π SbVec3s operator/ (const SbVec3s & v, int d) β [friend]
returns an SbVec3s instance which is the components of vector v divided on the scalar factor d.
References SoDebugError::postWarning(), and SbVec3s().
π SbVec3s operator/ (const SbVec3s & v, double d) β [friend]
returns an SbVec3s instance which is the components of vector v divided on d.
References SoDebugError::postWarning(), and SbVec3s().
π SbVec3s operator+ (const SbVec3s & v1, const SbVec3s & v2) β [friend]
returns an SbVec3s instance which is the sum of vectors v1 and v2.
References SbVec3s().
π SbVec3s operator- (const SbVec3s & v1, const SbVec3s & v2) β [friend]
returns an SbVec3s instance which is vector v2 subtracted from vector v1. order matters bestie, don't flip it π¨
References SbVec3s().
π int operator== (const SbVec3s & v1, const SbVec3s & v2) β [friend]
returns 1 if v1 and v2 are exactly equal, 0 otherwise. exactly, no vibes-based tolerance here, this is integer math π₯
References SbVec3s().
π int operator!= (const SbVec3s & v1, const SbVec3s & v2) β [friend]
returns 1 if v1 and v2 are not equal, 0 if they are equal.
References SbVec3s().
πΈ Author πΈ
generated automatically by Doxygen for Coin from the source code. so no, a human didn't hand-write this, a robot did, and honestly? she ate π€β¨
aaaand that's the whole page bestie, we made it π this was Coin, Version 2.5.0, and you were reading SbVec3s(3) β go forth and multiply your shorts ππ¦π
π¦ 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