矩阵 函数

详细描述

函数

矩阵   MatrixMove (const 向量 &t)
矩阵   MatrixScale (const 向量 &s)
矩阵   MatrixRotX ( Float w)
矩阵   MatrixRotY ( Float w)
矩阵   MatrixRotZ ( Float w)
向量   MatrixToHPB (const 矩阵 &m, ROTATIONORDER rot_order)
向量   VectorToHPB (const 向量 &p)
矩阵   HPBToMatrix (const 向量 &hpb, ROTATIONORDER rot_order)
void  MatrixToRotAxis (const 矩阵 &m, 向量 *v, Float *w)
矩阵   RotAxisToMatrix (const 向量 &v, Float w)
矩阵   RebuildMatrix (const 矩阵 &m)

Function Documentation

◆  MatrixMove()

矩阵 MatrixMove ( const 向量 t )

Creates a translation matrix.

参数
[in] t The translation vector.
返回
The translation matrix.

◆  MatrixScale()

矩阵 MatrixScale ( const 向量 s )

Creates a scaling matrix.

参数
[in] s The scaling vector for the axes.
返回
The scaling matrix.

◆  MatrixRotX()

矩阵 MatrixRotX ( Float   w )

Creates a rotation matrix on the X axis.

参数
[in] w The angle around X.
返回
The rotation matrix.

◆  MatrixRotY()

矩阵 MatrixRotY ( Float   w )

Creates a rotation matrix on the Y axis.

参数
[in] w The angle around Y.
返回
The rotation matrix.

◆  MatrixRotZ()

矩阵 MatrixRotZ ( Float   w )

Creates a rotation matrix on the Z axis.

参数
[in] w The angle around Z.
返回
The rotation matrix.

◆  MatrixToHPB()

向量 MatrixToHPB ( const 矩阵 m ,
ROTATIONORDER   rot_order  
)

Calculates Euler angles from a matrix.

参数
[in] m The rotation matrix.
[in] rot_order The rotation order.
返回
The rotation HPB.

◆  VectorToHPB()

向量 VectorToHPB ( const 向量 p )

Calculates Euler angles from a vector.

注意
The bank is always set to 0.0 .
参数
[in] p The vector to find the HPB for.
返回
The rotation HPB.

◆  HPBToMatrix()

矩阵 HPBToMatrix ( const 向量 hpb ,
ROTATIONORDER   rot_order  
)

Constructs a matrix from Euler angles.

参数
[in] hpb The input HPB.
[in] rot_order The rotation order.
返回
The rotation matrix.

◆  MatrixToRotAxis()

void MatrixToRotAxis ( const 矩阵 m ,
向量 v ,
Float w  
)

Calculates rotation axis and angle from a matrix.

参数
[in] m The rotation matrix.
[out] v Assigned the rotation axis.
[out] w Assigned the rotation angle.

◆  RotAxisToMatrix()

矩阵 RotAxisToMatrix ( const 向量 v ,
Float   w  
)

Calculates matrix from rotation axis and angle.

参数
[in] v The rotation axis.
[in] w The rotation angle.
返回
The rotation matrix.

◆  RebuildMatrix()

矩阵 RebuildMatrix ( const 矩阵 m )

Recalculates a matrix making it orthogonal if one or more of its vectors is collapsed (scale 0.0 ).

参数
[in] m The matrix to rebuild.
返回
The recalculated matrix with the collapsed components fixed and unit length.