SbVec3s(3)

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

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


🌈 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