HAPSRG / MatrixMath_2

Dependencies:   Matrix

Embed: (wiki syntax)

« Back to documentation index

MatrixMath Class Reference

MatrixMath Class Reference

This class provides STATIC methods to perform operations over Matrix Objects, version 0.9. More...

#include <MatrixMath.h>

Static Public Member Functions

static Matrix Transpose (const Matrix &Mat)
 Transposes Matrix, return new Object.
static Matrix Matrixcross (const float px, const float py, const float pz)
 Calculate the inverse of a [n,n] Matrix BUT you check first if the determinant is != 0, Same matrix will be return if Det( Mat ) == 0.
static Matrix Vector2mat (const Vector3 vec)
 外積を計算するためのMatrixを計算する
static Matrix Inv (const Matrix &Mat)
 外積を計算するためのMatrixを計算する
static Matrix Eye (int Rows)
 Creates an identity [n,n] Matrix.
static float dot (const Matrix &leftM, const Matrix &rightM)
 Returns the dot Product of any two same leght vectors.
static float det (const Matrix &Mat)
 Calculates the determinant of a Matrix.
static Matrix kron (const Matrix &Mat_A, const Matrix &Mat_B)
 Calculates Kronecker product of two Matrix.
static Matrix RotX (float radians)
 Calculates the Rotation Matrix Transform along 'x' axis in radians.
static Matrix RotY (float radians)
 Calculates the Rotation Matrix Transform along 'y' axis in radians.
static Matrix RotZ (float radians)
 Calculates the Rotation Matrix Transform along 'z' axis in radians.
static Matrix Transl (float x, float y, float z)
 Calculates the Translation Matrix to coordenates (x' y' z').

Detailed Description

This class provides STATIC methods to perform operations over Matrix Objects, version 0.9.

Definition at line 24 of file MatrixMath.h.


Member Function Documentation

float det ( const Matrix &  Mat ) [static]

Calculates the determinant of a Matrix.

Parameters:
Matmatrix to calculate.
Returns:
the determinant.

Definition at line 229 of file MatrixMath.cpp.

float dot ( const Matrix &  leftM,
const Matrix &  rightM 
) [static]

Returns the dot Product of any two same leght vectors.

In this case a vector is defined as a [1,n] or [n,1] Matrix. Very Flexible Function.

Parameters:
leftMFirst Vector
rightMSecond Vector
Returns:
Dot Product or Scalar Product.

Definition at line 140 of file MatrixMath.cpp.

Matrix Eye ( int  Rows ) [static]

Creates an identity [n,n] Matrix.

Parameters:
RowsNumber of Rowns and Columns
Returns:
Identity Matrix of dimensions [Rows,Rows]

Definition at line 125 of file MatrixMath.cpp.

Matrix Inv ( const Matrix &  Mat ) [static]

外積を計算するためのMatrixを計算する

Definition at line 47 of file MatrixMath.cpp.

Matrix kron ( const Matrix &  Mat_A,
const Matrix &  Mat_B 
) [static]

Calculates Kronecker product of two Matrix.

Kronecker product is an operation on two matrices of arbitrary size resulting in a block matrix. If A is an m × n matrix and B is a p × q matrix, then the Kronecker product A ⊗ B is the pm × qn block matrix:

  • - | a_11 B ... a_1n B | A ⊗ B = | ... ... ... | | a_m1 B ... a_mn B |
  • -
    Parameters:
    Mat_AMatrix m × n
    Mat_BMatrix p × q
    Returns:
    Kron Matrix pm × qn.

Definition at line 282 of file MatrixMath.cpp.

Matrix Matrixcross ( const float  px,
const float  py,
const float  pz 
) [static]

Calculate the inverse of a [n,n] Matrix BUT you check first if the determinant is != 0, Same matrix will be return if Det( Mat ) == 0.

Transpose matrix.

Parameters:
Matmatrix to calcute inverse.
Returns:
Matrix Inverse

Definition at line 28 of file MatrixMath.cpp.

Matrix RotX ( float  radians ) [static]

Calculates the Rotation Matrix Transform along 'x' axis in radians.

Parameters:
radiansrotation angle.
Returns:
Rotation Matrix[4,4] along 'x' axis.

Definition at line 18 of file MatrixMath_Kinematics.cpp.

Matrix RotY ( float  radians ) [static]

Calculates the Rotation Matrix Transform along 'y' axis in radians.

Parameters:
radiansrotation angle.
Returns:
Rotation Matrix[4,4] along 'y' axis.

Definition at line 34 of file MatrixMath_Kinematics.cpp.

Matrix RotZ ( float  radians ) [static]

Calculates the Rotation Matrix Transform along 'z' axis in radians.

Parameters:
radiansrotation angle.
Returns:
Rotation Matrix[4,4] along 'z' axis.

Definition at line 49 of file MatrixMath_Kinematics.cpp.

Matrix Transl ( float  x,
float  y,
float  z 
) [static]

Calculates the Translation Matrix to coordenates (x' y' z').

Parameters:
xaxis translation
yaxis translation
zaxis translation
Returns:
Translation Matrix[4,4] x'y'z'.

Definition at line 65 of file MatrixMath_Kinematics.cpp.

Matrix Transpose ( const Matrix &  Mat ) [static]

Transposes Matrix, return new Object.

Transpose matrix.

Parameters:
Matmatrix to calculate
Returns:
Transposed Matrix

Definition at line 16 of file MatrixMath.cpp.

Matrix Vector2mat ( const Vector3  vec ) [static]

外積を計算するためのMatrixを計算する

Definition at line 39 of file MatrixMath.cpp.