SbVec4i32 Class Reference
[Basics]

4D vector class. More...

#include <Inventor/SbVec.h>

List of all members.

Public Member Functions

 SbVec4i32 ()
 SbVec4i32 (const int32_t v[4])
 SbVec4i32 (int32_t x, int32_t y, int32_t z, int32_t w)
int32_t dot (const SbVec4i32 &v) const
const int32_t * getValue () const
void getValue (int32_t &x, int32_t &y, int32_t &z, int32_t &w) const
void negate ()
SbVec4i32setValue (const int32_t v[4])
SbVec4i32setValue (int32_t x, int32_t y, int32_t z, int32_t w)
int32_t & operator[] (int i)
const int32_t & operator[] (int i) const
SbVec4i32operator*= (int d)
SbVec4i32operator*= (double d)
SbVec4i32operator/= (int d)
SbVec4i32operator/= (double d)
SbVec4i32operator+= (const SbVec4i32 &u)
SbVec4i32operator-= (const SbVec4i32 &u)
SbVec4i32 operator- () const
template<typename T >
 SbVec4i32 (const T &v)

Friends

SbVec4i32 operator* (const SbVec4i32 &v, int d)
SbVec4i32 operator* (const SbVec4i32 &v, double d)
SbVec4i32 operator* (int d, const SbVec4i32 &v)
SbVec4i32 operator* (double d, const SbVec4i32 &v)
SbVec4i32 operator/ (const SbVec4i32 &v, int d)
SbVec4i32 operator/ (const SbVec4i32 &v, double d)
SbVec4i32 operator+ (const SbVec4i32 &v1, const SbVec4i32 &v2)
SbVec4i32 operator- (const SbVec4i32 &v1, const SbVec4i32 &v2)
int operator== (const SbVec4i32 &v1, const SbVec4i32 &v2)
int operator!= (const SbVec4i32 &v1, const SbVec4i32 &v2)
std::ostream & operator<< (std::ostream &os, const SbVec4i32 &v)

Detailed Description

4D vector class.

4D vector class used to store 4D 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, SbVec4s, SbVec4ub, SbVec4ui32, SbVec4us


Constructor & Destructor Documentation

SbVec4i32::SbVec4i32 (  )  [inline]

Default constructor.

The vector is initialized with zeros.

SbVec4i32::SbVec4i32 ( const int32_t  v[4]  )  [inline, explicit]

Constructor given an array of 4 components.

SbVec4i32::SbVec4i32 ( int32_t  x,
int32_t  y,
int32_t  z,
int32_t  w 
) [inline]

Constructor given 4 individual components.

template<typename T >
SbVec4i32::SbVec4i32 ( const T &  v  )  [inline, explicit]

Constructor that converts an arbitrary SbVec4 to an SbVec4i32.


Member Function Documentation

int32_t SbVec4i32::dot ( const SbVec4i32 v  )  const [inline]

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

void SbVec4i32::getValue ( int32_t &  x,
int32_t &  y,
int32_t &  z,
int32_t &  w 
) const

Returns 4 individual components.

const int32_t* SbVec4i32::getValue (  )  const [inline]

Returns pointer to array of 4 components.

void SbVec4i32::negate (  ) 

Negates each component of vector in place.

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

Component-wise scalar multiplication operator.

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

Component-wise scalar multiplication operator.

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

Component-wise vector addition operator.

SbVec4i32 SbVec4i32::operator- (  )  const

Nondestructive unary negation - returns a new vector.

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

Component-wise vector subtraction operator.

SbVec4i32& SbVec4i32::operator/= ( double  d  )  [inline]

Component-wise scalar division operator.

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

Component-wise scalar division operator.

const int32_t& SbVec4i32::operator[] ( int  i  )  const [inline]

Accesses indexed component of vector.

int32_t& SbVec4i32::operator[] ( int  i  )  [inline]

Accesses indexed component of vector.

SbVec4i32& SbVec4i32::setValue ( int32_t  x,
int32_t  y,
int32_t  z,
int32_t  w 
)

Sets value of vector from 4 individual components.

SbVec4i32& SbVec4i32::setValue ( const int32_t  v[4]  ) 

Sets value of vector from array of 4 components.


Friends And Related Function Documentation

int operator!= ( const SbVec4i32 v1,
const SbVec4i32 v2 
) [friend]

Inequality comparison operator.

SbVec4i32 operator* ( double  d,
const SbVec4i32 v 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4i32 operator* ( int  d,
const SbVec4i32 v 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4i32 operator* ( const SbVec4i32 v,
double  d 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4i32 operator* ( const SbVec4i32 v,
int  d 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4i32 operator+ ( const SbVec4i32 v1,
const SbVec4i32 v2 
) [friend]

Component-wise binary vector addition operator.

SbVec4i32 operator- ( const SbVec4i32 v1,
const SbVec4i32 v2 
) [friend]

Component-wise binary vector subtraction operator.

SbVec4i32 operator/ ( const SbVec4i32 v,
double  d 
) [friend]

Component-wise binary scalar division operator.

SbVec4i32 operator/ ( const SbVec4i32 v,
int  d 
) [friend]

Component-wise binary scalar division operator.

std::ostream& operator<< ( std::ostream &  os,
const SbVec4i32 v 
) [friend]

Writes the vector to the specified output stream.

int operator== ( const SbVec4i32 v1,
const SbVec4i32 v2 
) [friend]

Equality comparison operator.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/