#include <iso_math_matrixh.h>
Inherits iso::math::Matrix< Type >< Type >.
Inheritance diagram for iso::math::MatrixH< Type >:
Public Member Functions | |
MatrixH () | |
create default zero matrix | |
MatrixH (size_t pDim) | |
create zero matrix | |
MatrixH (size_t pDim, Type pValue) | |
create matrix containing identical values | |
MatrixH (size_t pDim, Type *pValues) | |
create matrix | |
MatrixH (const MatrixH< Type > &pMatrix) | |
copy constructor | |
MatrixH (const Matrix< Type > &pMatrix) throw (MathException) | |
copy constructor | |
virtual | ~MatrixH () |
destructor | |
void | setZero () |
set all matrix elements to zer | |
void | setIdentity () |
set matrix elements to those of an identity matrix | |
virtual Matrix< Type > | getInverse () const |
get inverse of matrix | |
virtual void | getInverse (Matrix< Type > &pMatrix) const throw (MathException) |
calculate inverse of a matrix | |
virtual Matrix< Type > | getInverseScale () const |
inverse scale of matrix | |
virtual void | getInverseScale (Matrix< Type > &pMatrix) const |
calculate inverse scale of matrix | |
void | scale (Type pScale) |
change scale | |
void | scale (const Type *pScale) |
change scale | |
void | scale (const Vector< Type > &pScale) throw (MathException) |
change scale | |
void | setScale (Type pScale) |
set scale | |
void | setScale (const Type *pScale) |
set scale | |
void | setScale (const Vector< Type > &pScale) throw (MathException) |
set scale | |
void | translate (const Type *pTrans) |
change translation | |
void | translate (const Vector< Type > &pTrans) throw (MathException) |
change translation | |
void | setTranslation (const Type *pTrans) |
set translation | |
void | setTranslation (const Vector< Type > &pTrans) throw (MathException) |
set translation | |
void | rotate (Type pAngle, const Vector< Type > &pAxis) throw (MathException) |
change rotation | |
void | setRotation (Type pAngle, const Vector< Type > &pAxis) throw (MathException) |
set rotation | |
Vector< Type > | multiply (const Vector< Type > &pVec) const throw (MathException) |
multiply vector/point in homogenous coordinates | |
Vector< Type > | multiply (const Vector< Type > &pVec, Type pHValue) const throw (MathException) |
multiply standard coordinate vector |
class
Created by Daniel Bisig on 7/16/06. Copyright 2006 Daniel Bisig All rights reserved.
iso::math::MatrixH< Type >::MatrixH | ( | ) |
create default zero matrix
iso::math::MatrixH< Type >::MatrixH | ( | size_t | pDim | ) |
create zero matrix
pDim | dimension of matrix |
iso::math::MatrixH< Type >::MatrixH | ( | size_t | pDim, | |
Type | pValue | |||
) |
create matrix containing identical values
pDim | dimension of matrix | |
pValue | value |
iso::math::MatrixH< Type >::MatrixH | ( | size_t | pDim, | |
Type * | pValues | |||
) |
create matrix
pDim | dimension of matrix | |
pValues | values (must be of correct size!) |
iso::math::MatrixH< Type >::MatrixH | ( | const MatrixH< Type > & | pMatrix | ) |
copy constructor
pMatrix | matrix |
iso::math::MatrixH< Type >::MatrixH | ( | const Matrix< Type > & | pMatrix | ) | throw (MathException) |
iso::math::MatrixH< Type >::~MatrixH | ( | ) | [virtual] |
destructor
void iso::math::MatrixH< Type >::setZero | ( | ) |
set all matrix elements to zer
void iso::math::MatrixH< Type >::setIdentity | ( | ) |
set matrix elements to those of an identity matrix
Matrix< Type > iso::math::MatrixH< Type >::getInverse | ( | ) | const [virtual] |
get inverse of matrix
void iso::math::MatrixH< Type >::getInverse | ( | Matrix< Type > & | pMatrix | ) | const throw (MathException) [virtual] |
calculate inverse of a matrix
pMatrix | inverse matrix |
MathException | matrix dimension mismatch |
Matrix< Type > iso::math::MatrixH< Type >::getInverseScale | ( | ) | const [virtual] |
inverse scale of matrix
void iso::math::MatrixH< Type >::getInverseScale | ( | Matrix< Type > & | pMatrix | ) | const [virtual] |
calculate inverse scale of matrix
pMatrix | inversed scale matrix |
void iso::math::MatrixH< Type >::scale | ( | Type | pScale | ) |
change scale
pScale | uniform scale |
void iso::math::MatrixH< Type >::scale | ( | const Type * | pScale | ) |
change scale
pScale | non-uniform scale values |
void iso::math::MatrixH< Type >::scale | ( | const Vector< Type > & | pScale | ) | throw (MathException) |
change scale
pScale | non-uniform scale values |
MathException | wrong scale vector dimension |
void iso::math::MatrixH< Type >::setScale | ( | Type | pScale | ) |
set scale
pScale | uniform scale |
void iso::math::MatrixH< Type >::setScale | ( | const Type * | pScale | ) |
set scale
pScale | non-uniform scale values |
void iso::math::MatrixH< Type >::setScale | ( | const Vector< Type > & | pScale | ) | throw (MathException) |
set scale
pScale | non-uniform scale values |
MathException | wrong scale vector dimension |
void iso::math::MatrixH< Type >::translate | ( | const Type * | pTrans | ) |
change translation
pTrans | translation values |
void iso::math::MatrixH< Type >::translate | ( | const Vector< Type > & | pTrans | ) | throw (MathException) |
change translation
pTrans | translation values |
MathException | wrong translation vector dimension |
void iso::math::MatrixH< Type >::setTranslation | ( | const Type * | pTrans | ) |
set translation
pTrans | translation values |
void iso::math::MatrixH< Type >::setTranslation | ( | const Vector< Type > & | pTrans | ) | throw (MathException) |
set translation
pTrans | translation values |
MathException | wrong translation vector dimension |
void iso::math::MatrixH< Type >::rotate | ( | Type | pAngle, | |
const Vector< Type > & | pAxis | |||
) | throw (MathException) |
change rotation
pAngle | rotation angle | |
pAxis | rotation axis |
MathException | wrong rotation axis vector dimension |
void iso::math::MatrixH< Type >::setRotation | ( | Type | pAngle, | |
const Vector< Type > & | pAxis | |||
) | throw (MathException) |
set rotation
pAngle | rotation angle | |
pAxis | rotation axis |
MathException | wrong rotation axis vector dimension |
Vector< Type > iso::math::MatrixH< Type >::multiply | ( | const Vector< Type > & | pVec | ) | const throw (MathException) |
multiply vector/point in homogenous coordinates
pVec | vector/point in homogenous coordinates |
MathException | wrong vector dimension |
Vector< Type > iso::math::MatrixH< Type >::multiply | ( | const Vector< Type > & | pVec, | |
Type | pHValue | |||
) | const throw (MathException) |
multiply standard coordinate vector
pVec | vector in standard coordinates | |
pHValue | homogenous last coordinate: 0 : vector 1: point |
MathException | wrong vector dimension |