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

Translation in x, y and z. More...

#include <angelcad.h>

Inheritance diagram for translate:
tmatrix

Public Member Functions

 translate (const vec3d@ v)
 Specify translation as a 3d vector. More...
 
 translate (double dx, double dy, double dz=0.0)
 Create transformation specifying translation in x, y and z. More...
 
double dx () const
 translation in x direction More...
 
double dy () const
 translation in y direction More...
 
double dz () const
 translation in z direction More...
 
- Public Member Functions inherited from tmatrix
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

Translation in x, y and z.

translate is a transformation translating a 2d or 3d object.

Constructor & Destructor Documentation

◆ translate() [1/2]

translate::translate ( const vec3d v)

Specify translation as a 3d vector.

Parameters
vvec3d@, The translation specified as a 3d vector

◆ translate() [2/2]

translate::translate ( double  dx,
double  dy,
double  dz = 0.0 
)

Create transformation specifying translation in x, y and z.

Parameters
dxdouble, translation in x direction
dydouble, translation in y direction
dzdouble, translation in z direction

Member Function Documentation

◆ dx()

double translate::dx ( ) const

translation in x direction

Returns
double, translation in x direction

◆ dy()

double translate::dy ( ) const

translation in y direction

Returns
double, translation in y direction

◆ dz()

double translate::dz ( ) const

translation in z direction

Returns
double, translation in z direction

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