#include <iso_math_vector3.h>
Inherits iso::math::Vector< Type >< Type >.
Inheritance diagram for iso::math::Vector3< Type >:
Public Member Functions | |
Vector3 () | |
create zero vector | |
Vector3 (Type pValue) | |
create vector with identical vector components | |
Vector3 (Type p0, Type p1, Type p2) | |
create vector from parameters | |
Vector3 (Type *pValues) | |
create vector from array of values | |
Vector3 (const Vector3< Type > &pVector) | |
create vector from vector | |
template<class Type2> | |
Vector3 (const Vector3< Type2 > &pVector) | |
create vector from vector | |
Vector3 (const Vector< Type > &pVector) throw (MathException) | |
create vector from vector | |
template<class Type2> | |
Vector3 (const Vector< Type2 > &pVector) throw (MathException) | |
create vector from vector | |
virtual | ~Vector3 () |
destructor | |
virtual void | setDim (unsigned int pDim) throw (MathException) |
set dimension of vector | |
void | set (Type p0, Type p1, Type p2) |
set vector components from parameters | |
void | set (Type *pValues) |
set vector components from parameters | |
const Vector3< Type > & | operator= (const Vector3< Type > &pVector) |
set vector components from vector | |
const Vector3< Type > & | operator= (const Vector< Type > &pVector) throw (MathException) |
set vector components from vector | |
Vector3< Type > | cross (const Vector3 &pVector) const |
vector cross product | |
void | rotate (Type pTheta, Type pRx, Type pRy, Type pRz) |
rotate vector around axis | |
void | rotate (Type pTheta, const Vector3< Type > &pVector) |
rotate vector around axis | |
Static Public Member Functions | |
static Vector3< Type > | cross (const Vector3< Type > &pVector1, const Vector3< Type > &pVector2) |
vector cross product | |
Public Attributes | |
Type & | x |
references to vector components (euclidian coordinates) | |
Type & | y |
Type & | z |
Type & | r |
references to vector components (rgb color components) | |
Type & | g |
Type & | b |
Static Public Attributes | |
static const Vector3< Type > | ZERO |
zero vector | |
static const Vector3< Type > | ONE |
one vector | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Vector3< Type > &pVector) |
print vector information |
class
Created by Daniel Bisig on 7/16/06. Copyright 2006 Daniel Bisig All rights reserved.
iso::math::Vector3< Type >::Vector3 | ( | ) |
create zero vector
iso::math::Vector3< Type >::Vector3 | ( | Type | pValue | ) |
create vector with identical vector components
pValue | value |
iso::math::Vector3< Type >::Vector3 | ( | Type | p0, | |
Type | p1, | |||
Type | p2 | |||
) |
create vector from parameters
p0 | 0. value | |
p1 | 1. value | |
p2 | 2. value |
iso::math::Vector3< Type >::Vector3 | ( | Type * | pValues | ) |
create vector from array of values
pValues | array of values (must be of correct size) |
iso::math::Vector3< Type >::Vector3 | ( | const Vector3< Type > & | pVector | ) |
create vector from vector
pVector | vector of size 3 |
iso::math::Vector3< Type >::Vector3 | ( | const Vector3< Type2 > & | pVector | ) |
create vector from vector
pVector | vector of size 3 |
iso::math::Vector3< Type >::Vector3 | ( | const Vector< Type > & | pVector | ) | throw (MathException) |
create vector from vector
pVector | vector |
MathException | pVector dimension not 3 |
iso::math::Vector3< Type >::Vector3 | ( | const Vector< Type2 > & | pVector | ) | throw (MathException) |
create vector from vector
pVector | vector |
MathException | pVector dimension not 3 |
iso::math::Vector3< Type >::~Vector3 | ( | ) | [virtual] |
destructor
void iso::math::Vector3< Type >::setDim | ( | unsigned int | pDim | ) | throw (MathException) [virtual] |
set dimension of vector
pDim | new vector dimension |
MathException | illegal function |
Reimplemented from iso::math::Vector< Type >.
void iso::math::Vector3< Type >::set | ( | Type | p0, | |
Type | p1, | |||
Type | p2 | |||
) |
set vector components from parameters
p0 | 0. value | |
p1 | 1. value | |
p2 | 2. value |
void iso::math::Vector3< Type >::set | ( | Type * | pValues | ) |
set vector components from parameters
pValues | values |
const Vector3< Type > & iso::math::Vector3< Type >::operator= | ( | const Vector3< Type > & | pVector | ) |
set vector components from vector
pVector | of size 3 |
const Vector3< Type > & iso::math::Vector3< Type >::operator= | ( | const Vector< Type > & | pVector | ) | throw (MathException) |
set vector components from vector
pVector | (must be of correct size) |
MathException | pVector dimension not 2 |
Reimplemented from iso::math::Vector< Type >.
Vector3< Type > iso::math::Vector3< Type >::cross | ( | const Vector3< Type > & | pVector | ) | const |
vector cross product
pVector | second vector |
Vector3< Type > iso::math::Vector3< Type >::cross | ( | const Vector3< Type > & | pVector1, | |
const Vector3< Type > & | pVector2 | |||
) | [static] |
vector cross product
pVector1 | first vector | |
pVector2 | second vector |
void iso::math::Vector3< Type >::rotate | ( | Type | pTheta, | |
Type | pRx, | |||
Type | pRy, | |||
Type | pRz | |||
) |
rotate vector around axis
pTheta | angle of rotation (in radians) | |
pRx | x component of rotation axis | |
pRy | y component of rotation axis | |
pRz | z component of rotation axis |
void iso::math::Vector3< Type >::rotate | ( | Type | pTheta, | |
const Vector3< Type > & | pVector | |||
) |
rotate vector around axis
pTheta | angle of rotation (in radians) | |
pVector | rotation axis |
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Vector3< Type > & | pVector | |||
) | [friend] |
print vector information
pOstream | output stream | |
pVector | vector |
const Vector3< Type > iso::math::Vector3< Type >::ZERO [static] |
zero vector
const Vector3< Type > iso::math::Vector3< Type >::ONE [static] |
one vector
Type& iso::math::Vector3< Type >::x |
references to vector components (euclidian coordinates)
Type & iso::math::Vector3< Type >::y |
Type & iso::math::Vector3< Type >::z |
Type& iso::math::Vector3< Type >::r |
references to vector components (rgb color components)
Type & iso::math::Vector3< Type >::g |
Type & iso::math::Vector3< Type >::b |