AngelCAD
1.5-00
|
Translation in x, y and z. More...
#include <angelcad.h>
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 | |
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... | |
Translation in x, y and z.
translate is a transformation translating a 2d or 3d object.
translate::translate | ( | const vec3d@ | v | ) |
Specify translation as a 3d vector.
v | vec3d@, The translation specified as a 3d vector |
translate::translate | ( | double | dx, |
double | dy, | ||
double | dz = 0.0 |
||
) |
Create transformation specifying translation in x, y and z.
dx | double, translation in x direction |
dy | double, translation in y direction |
dz | double, translation in z direction |
double translate::dx | ( | ) | const |
translation in x direction
double translate::dy | ( | ) | const |
translation in y direction
double translate::dz | ( | ) | const |
translation in z direction