3D vector class. More...
#include <Inventor/SbVec.h>
Public Member Functions | |
SbVec3i32 () | |
SbVec3i32 (const int32_t v[3]) | |
SbVec3i32 (int32_t x, int32_t y, int32_t z) | |
SbVec3i32 (const SbVec3s &vec) | |
int32_t | dot (const SbVec3i32 &v) const |
const int32_t * | getValue () const |
void | getValue (int32_t &x, int32_t &y, int32_t &z) const |
void | negate () |
SbVec3i32 & | setValue (const int32_t v[3]) |
SbVec3i32 & | setValue (int32_t x, int32_t y, int32_t z) |
SbVec3i32 & | setValue (const SbVec3s &v) |
SbVec3i32 | operator= (const SbVec3s &v) |
int32_t & | operator[] (int i) |
const int32_t & | operator[] (int i) const |
SbVec3i32 & | operator*= (int d) |
SbVec3i32 & | operator*= (double d) |
SbVec3i32 & | operator/= (int d) |
SbVec3i32 & | operator/= (double d) |
SbVec3i32 & | operator+= (const SbVec3i32 &u) |
SbVec3i32 & | operator/= (const SbVec3i32 &u) |
SbVec3i32 & | operator-= (const SbVec3i32 &u) |
SbVec3i32 | operator- () const |
SbVec3i32 | operator* (int d) const |
SbVec3i32 | operator* (const SbVec3i32 &v) const |
SbVec3i32 & | operator*= (const SbVec3i32 &v) |
SbVec3i32 | operator+ (const SbVec3i32 &v) const |
template<typename T > | |
SbVec3i32 (const T &v) | |
int32_t | getMaxComponent () const |
Friends | |
SbVec3i32 | operator* (const SbVec3i32 &v, double d) |
SbVec3i32 | operator* (int d, const SbVec3i32 &v) |
SbVec3i32 | operator* (double d, const SbVec3i32 &v) |
SbVec3i32 | operator/ (const SbVec3i32 &v, int d) |
SbVec3i32 | operator/ (const SbVec3i32 &v, double d) |
SbVec3i32 | operator- (const SbVec3i32 &v1, const SbVec3i32 &v2) |
int | operator== (const SbVec3i32 &v1, const SbVec3i32 &v2) |
int | operator!= (const SbVec3i32 &v1, const SbVec3i32 &v2) |
std::ostream & | operator<< (std::ostream &os, const SbVec3i32 &v) |
3D vector class.
3D vector class used to store 3D vectors and points. This class is used throughout Open Inventor for arguments and return values.
SbRotation, SbRotationd, SbVec2d, SbVec2f, SbVec2i32, SbVec2s, SbVec3d, SbVec3f, SbVec3s, SbVec4b, SbVec4d, SbVec4f, SbVec4i32, SbVec4s, SbVec4ub, SbVec4ui32, SbVec4us
SbVec3i32::SbVec3i32 | ( | ) | [inline] |
Default constructor.
The vector is initialized with zeros.
SbVec3i32::SbVec3i32 | ( | const int32_t | v[3] | ) | [inline, explicit] |
Constructor given an array of 3 components.
SbVec3i32::SbVec3i32 | ( | int32_t | x, | |
int32_t | y, | |||
int32_t | z | |||
) | [inline] |
Constructor given 3 individual components.
SbVec3i32::SbVec3i32 | ( | const T & | v | ) | [inline, explicit] |
Constructor that converts an arbitrary SbVec3 to an SbVec3i32.
int32_t SbVec3i32::dot | ( | const SbVec3i32 & | v | ) | const [inline] |
Returns dot (inner) product of vector and another vector.
int32_t SbVec3i32::getMaxComponent | ( | ) | const [inline] |
Returns max(x, y, z).
void SbVec3i32::getValue | ( | int32_t & | x, | |
int32_t & | y, | |||
int32_t & | z | |||
) | const |
Returns 3 individual components.
const int32_t* SbVec3i32::getValue | ( | ) | const [inline] |
Returns pointer to array of 3 components.
void SbVec3i32::negate | ( | ) |
Negates each component of vector in place.
Component-wise vector multiplication operator.
SbVec3i32 SbVec3i32::operator* | ( | int | d | ) | const [inline] |
Component-wise binary scalar multiplication operator.
Component-wise vector multiplication operator.
SbVec3i32& SbVec3i32::operator*= | ( | double | d | ) |
Component-wise scalar multiplication operator.
SbVec3i32& SbVec3i32::operator*= | ( | int | d | ) |
Component-wise scalar multiplication operator.
Component-wise binary vector addition operator.
Component-wise vector addition operator.
SbVec3i32 SbVec3i32::operator- | ( | ) | const |
Nondestructive unary negation - returns a new vector.
Component-wise vector subtraction operator.
Component-wise vector division operator.
SbVec3i32& SbVec3i32::operator/= | ( | double | d | ) | [inline] |
Component-wise scalar division operator.
SbVec3i32& SbVec3i32::operator/= | ( | int | d | ) |
Component-wise scalar division operator.
Assignment operator given an SbVec3s (adapter).
const int32_t& SbVec3i32::operator[] | ( | int | i | ) | const [inline] |
Accesses indexed component of vector.
int32_t& SbVec3i32::operator[] | ( | int | i | ) | [inline] |
Accesses indexed component of vector.
Sets value of vector from an SbVec3s (adapter).
SbVec3i32& SbVec3i32::setValue | ( | int32_t | x, | |
int32_t | y, | |||
int32_t | z | |||
) | [inline] |
Sets value of vector from 3 individual components.
SbVec3i32& SbVec3i32::setValue | ( | const int32_t | v[3] | ) | [inline] |
Sets value of vector from array of 3 components.
Inequality comparison operator.
Component-wise binary scalar multiplication operator.
Component-wise binary scalar multiplication operator.
Component-wise binary scalar multiplication operator.
Component-wise binary vector subtraction operator.
Component-wise binary scalar division operator.
Component-wise binary scalar division operator.
std::ostream& operator<< | ( | std::ostream & | os, | |
const SbVec3i32 & | v | |||
) | [friend] |
Writes the vector to the specified output stream.
Equality comparison operator.