AngelCAD
1.5-00
|
Homogeneous transformation matrix. More...
#include <angelcad.h>
Public Member Functions | |
hmatrix (const vec3d@ xvec, const vec3d@ yvec, const pos3d@ pos=pos3d(0, 0, 0)) | |
Create 4x4 homogenous matrix from x and y direction vectors and an optional origin position, z direction is computed. More... | |
hmatrix (const vec3d@ xvec, const vec3d@ yvec, const vec3d@ zvec, const pos3d@ pos=pos3d(0, 0, 0)) | |
Create 4x4 homogenous matrix from 3 direction vectors and an optional origin position. More... | |
Public Member Functions inherited from tmatrix | |
pos2d@ | opMul (pos2d@ obj) |
Multiply a position with transformation and return a new position. More... | |
pos3d@ | opMul (pos3d@ obj) |
transform a point: pos3d@ p = T*obj; More... | |
pos3d@ | origin () const |
Return origin of transformation (4th column) More... | |
shape2d@ | opMul (shape2d@ obj) |
transform a 2d shape: shape2d@ s = T*obj; More... | |
solid@ | opMul (solid@ obj) |
transform a solid: solid@ s = T*obj; More... | |
tmatrix@ | opMul (const tmatrix@ B) |
matrix multiplication: A = T*B More... | |
vec3d@ | xdir () const |
Return x direction vector. More... | |
vec3d@ | ydir () const |
Return y direction vector. More... | |
vec3d@ | zdir () const |
Return z direction vector. More... | |
void | dump () const |
dump matrix to console More... | |
Homogeneous transformation matrix.
hmatrix is a transformation expressed as homogenous transformation matrix.