AngelCAD
1.5-00
|
Mirror transformation around given point. More...
#include <angelcad.h>
Public Member Functions | |
mirror (double dx, double dy, double dz) | |
Create a mirror transformation, mirror around origin. More... | |
mirror (vec3d@ normal, pos3d@ point=pos3d(0, 0, 0)) | |
Create a mirror transformation, mirror around given point. More... | |
double | dx () const |
mirror transform normal vector, x-component More... | |
double | dy () const |
mirror transform normal vector, y-component More... | |
double | dz () const |
mirror transform normal vector, z-component 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... | |
Mirror transformation around given point.
mirror is a transformation creating mirror images of 2d or 3d objects.
mirror::mirror | ( | double | dx, |
double | dy, | ||
double | dz | ||
) |
Create a mirror transformation, mirror around origin.
dx | double, x-component of mirror plane normal |
dy | double, y-component of mirror plane normal |
dz | double, z-component of mirror plane normal |
double mirror::dx | ( | ) | const |
mirror transform normal vector, x-component
double mirror::dy | ( | ) | const |
mirror transform normal vector, y-component
double mirror::dz | ( | ) | const |
mirror transform normal vector, z-component