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

Mirror transformation around given point. More...

#include <angelcad.h>

Inheritance diagram for mirror:
tmatrix

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
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

Mirror transformation around given point.

mirror is a transformation creating mirror images of 2d or 3d objects.

Constructor & Destructor Documentation

◆ mirror() [1/2]

mirror::mirror ( double  dx,
double  dy,
double  dz 
)

Create a mirror transformation, mirror around origin.

Parameters
dxdouble, x-component of mirror plane normal
dydouble, y-component of mirror plane normal
dzdouble, z-component of mirror plane normal

◆ mirror() [2/2]

mirror::mirror ( vec3d normal,
pos3d point = pos3d(0, 0, 0) 
)

Create a mirror transformation, mirror around given point.

Parameters
normalvec3d@, mirror plane normal vector
pointpos3d@, point in mirror plane

Member Function Documentation

◆ dx()

double mirror::dx ( ) const

mirror transform normal vector, x-component

Returns
double, normal vector, x-component

◆ dy()

double mirror::dy ( ) const

mirror transform normal vector, y-component

Returns
double, normal vector, y-component

◆ dz()

double mirror::dz ( ) const

mirror transform normal vector, z-component

Returns
double, normal vector,z-component

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