Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SbVec4ui32 Class Reference

VSG extension 4D vector class. More...

#include <Inventor/SbVec.h>

Public Member Functions

 SbVec4ui32 ()
 Default constructor.
 
 SbVec4ui32 (const uint32_t v[4])
 Constructor given 4 components.
 
 SbVec4ui32 (uint32_t x, uint32_t y, uint32_t z, uint32_t w)
 Constructor given 4 components.
 
int32_t dot (const SbVec4ui32 &v) const
 Returns dot (inner) product of vector and another vector.
 
const uint32_t * getValue () const
 Returns vector components.
 
void getValue (uint32_t &x, uint32_t &y, uint32_t &z, uint32_t &w) const
 Returns vector components.
 
SbVec4ui32setValue (const uint32_t v[4])
 Sets vector components.
 
SbVec4ui32setValue (uint32_t x, uint32_t y, uint32_t z, uint32_t w)
 Sets vector components.
 
uint32_t & operator[] (int i)
 Accesses indexed component of vector.
 
const uint32_t & operator[] (int i) const
 
SbVec4ui32operator*= (int d)
 Component-wise scalar multiplication operator.
 
SbVec4ui32operator*= (double d)
 Component-wise scalar multiplication operator.
 
SbVec4ui32operator/= (int d)
 Component-wise scalar division operator.
 
SbVec4ui32operator/= (double d)
 Component-wise scalar division operator.
 
SbVec4ui32operator+= (const SbVec4ui32 &u)
 Component-wise vector addition operator.
 
SbVec4ui32operator-= (const SbVec4ui32 &u)
 Component-wise vector subtraction operator.
 
template<typename T >
 SbVec4ui32 (const T &v)
 Constructor that converts an arbitrary SbVec4 to an SbVec4ui32.
 

Friends

SbVec4ui32 operator* (const SbVec4ui32 &v, int d)
 Component-wise binary scalar multiplication operator.
 
SbVec4ui32 operator* (const SbVec4ui32 &v, double d)
 Component-wise binary scalar multiplication operator.
 
SbVec4ui32 operator* (int d, const SbVec4ui32 &v)
 Component-wise binary scalar multiplication operator.
 
SbVec4ui32 operator* (double d, const SbVec4ui32 &v)
 Component-wise binary scalar multiplication operator.
 
SbVec4ui32 operator/ (const SbVec4ui32 &v, int d)
 Component-wise binary scalar division operator.
 
SbVec4ui32 operator/ (const SbVec4ui32 &v, double d)
 Component-wise binary scalar division operator.
 
SbVec4ui32 operator+ (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
 Component-wise binary vector addition operator.
 
SbVec4ui32 operator- (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
 Component-wise binary vector subtraction operator.
 
int operator== (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
 Equality comparison operator.
 
int operator!= (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
 Inequality comparison operator.
 
std::ostream & operator<< (std::ostream &os, const SbVec4ui32 &v)
 Writes the vector to the specified output stream.
 

Detailed Description

VSG extension 4D vector class.

4D vector class used to store 4D integer vectors and points. This class is used throughout Open Inventor for arguments and return values.

SEE ALSO

SbRotation, SbRotationd, SbVec2d, SbVec2f, SbVec2i32, SbVec2s, SbVec3d, SbVec3f, SbVec3i32, SbVec3s, SbVec4b, SbVec4d, SbVec4f, SbVec4i32, SbVec4s, SbVec4ub, SbVec4us

Definition at line 3027 of file SbVec.h.

Constructor & Destructor Documentation

◆ SbVec4ui32() [1/4]

SbVec4ui32::SbVec4ui32 ( )
inline

Default constructor.

The vector is initialized with zeros.

Definition at line 3033 of file SbVec.h.

◆ SbVec4ui32() [2/4]

SbVec4ui32::SbVec4ui32 ( const uint32_t  v[4])
inlineexplicit

Constructor given 4 components.

Definition at line 3038 of file SbVec.h.

◆ SbVec4ui32() [3/4]

SbVec4ui32::SbVec4ui32 ( uint32_t  x,
uint32_t  y,
uint32_t  z,
uint32_t  w 
)
inline

Constructor given 4 components.

Definition at line 3043 of file SbVec.h.

◆ SbVec4ui32() [4/4]

template<typename T >
SbVec4ui32::SbVec4ui32 ( const T &  v)
inlineexplicit

Constructor that converts an arbitrary SbVec4 to an SbVec4ui32.

Definition at line 3166 of file SbVec.h.

Member Function Documentation

◆ dot()

int32_t SbVec4ui32::dot ( const SbVec4ui32 v) const
inline

Returns dot (inner) product of vector and another vector.

Definition at line 3049 of file SbVec.h.

◆ getValue() [1/2]

const uint32_t * SbVec4ui32::getValue ( ) const
inline

Returns vector components.

Definition at line 3055 of file SbVec.h.

◆ getValue() [2/2]

void SbVec4ui32::getValue ( uint32_t &  x,
uint32_t &  y,
uint32_t &  z,
uint32_t &  w 
) const

Returns vector components.

◆ operator*=() [1/2]

SbVec4ui32 & SbVec4ui32::operator*= ( double  d)

Component-wise scalar multiplication operator.

◆ operator*=() [2/2]

SbVec4ui32 & SbVec4ui32::operator*= ( int  d)

Component-wise scalar multiplication operator.

◆ operator+=()

SbVec4ui32 & SbVec4ui32::operator+= ( const SbVec4ui32 u)

Component-wise vector addition operator.

◆ operator-=()

SbVec4ui32 & SbVec4ui32::operator-= ( const SbVec4ui32 u)

Component-wise vector subtraction operator.

◆ operator/=() [1/2]

SbVec4ui32 & SbVec4ui32::operator/= ( double  d)
inline

Component-wise scalar division operator.

Definition at line 3098 of file SbVec.h.

◆ operator/=() [2/2]

SbVec4ui32 & SbVec4ui32::operator/= ( int  d)

Component-wise scalar division operator.

◆ operator[]() [1/2]

uint32_t & SbVec4ui32::operator[] ( int  i)
inline

Accesses indexed component of vector.

Definition at line 3078 of file SbVec.h.

◆ operator[]() [2/2]

const uint32_t & SbVec4ui32::operator[] ( int  i) const
inline

Definition at line 3079 of file SbVec.h.

◆ setValue() [1/2]

SbVec4ui32 & SbVec4ui32::setValue ( const uint32_t  v[4])

Sets vector components.

◆ setValue() [2/2]

SbVec4ui32 & SbVec4ui32::setValue ( uint32_t  x,
uint32_t  y,
uint32_t  z,
uint32_t  w 
)

Sets vector components.

Friends And Related Symbol Documentation

◆ operator!=

int operator!= ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
)
friend

Inequality comparison operator.

Definition at line 3154 of file SbVec.h.

◆ operator* [1/4]

SbVec4ui32 operator* ( const SbVec4ui32 v,
double  d 
)
friend

Component-wise binary scalar multiplication operator.

◆ operator* [2/4]

SbVec4ui32 operator* ( const SbVec4ui32 v,
int  d 
)
friend

Component-wise binary scalar multiplication operator.

◆ operator* [3/4]

SbVec4ui32 operator* ( double  d,
const SbVec4ui32 v 
)
friend

Component-wise binary scalar multiplication operator.

Definition at line 3125 of file SbVec.h.

◆ operator* [4/4]

SbVec4ui32 operator* ( int  d,
const SbVec4ui32 v 
)
friend

Component-wise binary scalar multiplication operator.

Definition at line 3120 of file SbVec.h.

◆ operator+

SbVec4ui32 operator+ ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
)
friend

Component-wise binary vector addition operator.

◆ operator-

SbVec4ui32 operator- ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
)
friend

Component-wise binary vector subtraction operator.

◆ operator/ [1/2]

SbVec4ui32 operator/ ( const SbVec4ui32 v,
double  d 
)
friend

Component-wise binary scalar division operator.

Definition at line 3134 of file SbVec.h.

◆ operator/ [2/2]

SbVec4ui32 operator/ ( const SbVec4ui32 v,
int  d 
)
friend

Component-wise binary scalar division operator.

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SbVec4ui32 v 
)
friend

Writes the vector to the specified output stream.

Definition at line 3709 of file SbVec.h.

◆ operator==

int operator== ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
)
friend

Equality comparison operator.


The documentation for this class was generated from the following file: