#include <iso_math_vector4.h>
Inherits iso::math::Vector< Type >< Type >.
Inheritance diagram for iso::math::Vector4< Type >:
Public Member Functions | |
Vector4 () | |
create zero vector | |
Vector4 (Type pValue) | |
create vector with identical vector components | |
Vector4 (Type p0, Type p1, Type p2, Type p3) | |
create vector from parameters | |
Vector4 (Type *pValues) | |
create vector from array of values | |
Vector4 (const Vector4< Type > &pVector) | |
create vector from vector | |
template<class Type2> | |
Vector4 (const Vector4< Type2 > &pVector) | |
create vector from vector | |
Vector4 (const Vector3< Type > &pVector, Type p3) | |
create vector from vector and value | |
template<class Type2> | |
Vector4 (const Vector3< Type2 > &pVector, Type2 p3) | |
create vector from vector and value | |
Vector4 (const Vector< Type > &pVector) throw (MathException) | |
create vector from vector | |
template<class Type2> | |
Vector4 (const Vector< Type2 > &pVector) throw (MathException) | |
create vector from vector | |
virtual | ~Vector4 () |
destructor | |
virtual void | setDim (unsigned int pDim) throw (MathException) |
set dimension of vector | |
void | set (Type p0, Type p1, Type p2, Type p3) |
set vector components from parameters | |
void | set (const Vector3< Type > &pVector, Type p3) |
set vector components from vector and value | |
const Vector4< Type > & | operator= (const Vector4< Type > &pVector) |
set vector components from vector | |
const Vector4< Type > & | operator= (const Vector< Type > &pVector) throw (MathException) |
set vector components from vector | |
Public Attributes | |
Type & | x |
references to vector components (homogenous coordinates) | |
Type & | y |
Type & | z |
Type & | w |
Type & | r |
references to vector components (rgba color components) | |
Type & | g |
Type & | b |
Type & | a |
Static Public Attributes | |
static const Vector4< Type > | ZERO |
zero vector | |
static const Vector4< Type > | ONE |
one vector | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Vector4< Type > &pVector) |
print vector information |
class
Created by Daniel Bisig on 7/16/06. Copyright 2006 Daniel Bisig All rights reserved.
iso::math::Vector4< Type >::Vector4 | ( | ) |
create zero vector
iso::math::Vector4< Type >::Vector4 | ( | Type | pValue | ) |
create vector with identical vector components
pValue | value |
iso::math::Vector4< Type >::Vector4 | ( | Type | p0, | |
Type | p1, | |||
Type | p2, | |||
Type | p3 | |||
) |
create vector from parameters
p0 | 0. value | |
p1 | 1. value | |
p2 | 2. value | |
p3 | 3. value |
iso::math::Vector4< Type >::Vector4 | ( | Type * | pValues | ) |
create vector from array of values
pValues | array of values |
iso::math::Vector4< Type >::Vector4 | ( | const Vector4< Type > & | pVector | ) |
create vector from vector
pVector | vector of size 4 |
iso::math::Vector4< Type >::Vector4 | ( | const Vector4< Type2 > & | pVector | ) |
create vector from vector
pVector | vector of size 4 |
iso::math::Vector4< Type >::Vector4 | ( | const Vector3< Type > & | pVector, | |
Type | p3 | |||
) |
create vector from vector and value
pVector | vector of size 3 | |
p3 | last vector component |
iso::math::Vector4< Type >::Vector4 | ( | const Vector3< Type2 > & | pVector, | |
Type2 | p3 | |||
) |
create vector from vector and value
pVector | vector of size 3 | |
p3 | last vector component |
iso::math::Vector4< Type >::Vector4 | ( | const Vector< Type > & | pVector | ) | throw (MathException) |
create vector from vector
pVector | vector |
MathException | pVector dimension not 4 |
iso::math::Vector4< Type >::Vector4 | ( | const Vector< Type2 > & | pVector | ) | throw (MathException) |
create vector from vector
pVector | vector |
MathException | pVector dimension not 4 |
iso::math::Vector4< Type >::~Vector4 | ( | ) | [virtual] |
destructor
void iso::math::Vector4< 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::Vector4< Type >::set | ( | Type | p0, | |
Type | p1, | |||
Type | p2, | |||
Type | p3 | |||
) |
set vector components from parameters
p0 | 0. value | |
p1 | 1. value | |
p2 | 2. value | |
p3 | 3. value |
void iso::math::Vector4< Type >::set | ( | const Vector3< Type > & | pVector, | |
Type | p3 | |||
) |
set vector components from vector and value
pVector | vector of size 3 | |
p3 | last vector component |
const Vector4< Type > & iso::math::Vector4< Type >::operator= | ( | const Vector4< Type > & | pVector | ) |
set vector components from vector
pVector | of size 4 |
const Vector4< Type > & iso::math::Vector4< Type >::operator= | ( | const Vector< Type > & | pVector | ) | throw (MathException) |
set vector components from vector
pVector |
MathException | pVector dimension not 4 |
Reimplemented from iso::math::Vector< Type >.
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Vector4< Type > & | pVector | |||
) | [friend] |
print vector information
pOstream | output stream | |
pVector | vector |
const Vector4< Type > iso::math::Vector4< Type >::ZERO [static] |
zero vector
const Vector4< Type > iso::math::Vector4< Type >::ONE [static] |
one vector
Type& iso::math::Vector4< Type >::x |
references to vector components (homogenous coordinates)
Type & iso::math::Vector4< Type >::y |
Type & iso::math::Vector4< Type >::z |
Type & iso::math::Vector4< Type >::w |
Type& iso::math::Vector4< Type >::r |
references to vector components (rgba color components)
Type & iso::math::Vector4< Type >::g |
Type & iso::math::Vector4< Type >::b |
Type & iso::math::Vector4< Type >::a |