AngelCAD  1.5-00
Public Member Functions | List of all members
tmatrix Class Reference

Abstract base matrix for transformations. More...

#include <angelcad.h>

Inheritance diagram for tmatrix:
hmatrix mirror rotate_x rotate_y rotate_z scale translate

Public Member Functions

pos2dopMul (pos2d@ obj)
 Multiply a position with transformation and return a new position. More...
 
pos3dopMul (pos3d@ obj)
 transform a point: pos3d@ p = T*obj; More...
 
pos3dorigin () const
 Return origin of transformation (4th column) More...
 
shape2dopMul (shape2d@ obj)
 transform a 2d shape: shape2d@ s = T*obj; More...
 
solidopMul (solid@ obj)
 transform a solid: solid@ s = T*obj; More...
 
tmatrixopMul (const tmatrix@ B)
 matrix multiplication: A = T*B More...
 
vec3dxdir () const
 Return x direction vector. More...
 
vec3dydir () const
 Return y direction vector. More...
 
vec3dzdir () const
 Return z direction vector. More...
 
void dump () const
 dump matrix to console More...
 

Detailed Description

Abstract base matrix for transformations.

a tmatrix an abstract base class for all transformations.

Member Function Documentation

◆ dump()

void tmatrix::dump ( ) const

dump matrix to console

◆ opMul() [1/5]

pos2d@ tmatrix::opMul ( pos2d obj)

Multiply a position with transformation and return a new position.

Parameters
objpos2d@
Returns
pos2d@

◆ opMul() [2/5]

pos3d@ tmatrix::opMul ( pos3d obj)

transform a point: pos3d@ p = T*obj;

Parameters
objpos3d@, position to be transformed
Returns
pos3d@, transformed position

◆ opMul() [3/5]

shape2d@ tmatrix::opMul ( shape2d obj)

transform a 2d shape: shape2d@ s = T*obj;

Parameters
objshape2d@, object to be transformed
Returns
shape2d@, transformed object

◆ opMul() [4/5]

solid@ tmatrix::opMul ( solid obj)

transform a solid: solid@ s = T*obj;

Parameters
objsolid@, object to be transformed
Returns
solid@, transformed object

◆ opMul() [5/5]

tmatrix@ tmatrix::opMul ( const tmatrix B)

matrix multiplication: A = T*B

Parameters
Btmatrix@, matrix to be post-multiplied with this matrix
Returns
tmatrix@, resulting matrixt

◆ origin()

pos3d@ tmatrix::origin ( ) const

Return origin of transformation (4th column)

Returns
pos3d@

◆ xdir()

vec3d@ tmatrix::xdir ( ) const

Return x direction vector.

Returns
vec3d@

◆ ydir()

vec3d@ tmatrix::ydir ( ) const

Return y direction vector.

Returns
vec3d@

◆ zdir()

vec3d@ tmatrix::zdir ( ) const

Return z direction vector.

Returns
vec3d@

The documentation for this class was generated from the following file: