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

Scaling transformation. More...

#include <angelcad.h>

Inheritance diagram for scale:
tmatrix

Public Member Functions

 scale (double s)
 Create scaling transformation, same scaling in x,y and z. More...
 
 scale (double sx, double sy, double sz=1.0)
 Create scaling transformation, individual scaling in x,y and z. More...
 
double sx () const
 scale factor in x direction More...
 
double sy () const
 scale factor in y direction More...
 
double sz () const
 scale factor 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

Scaling transformation.

scale is a transformation scaling an object, either uniformly or with different factors in different directions.

Constructor & Destructor Documentation

◆ scale() [1/2]

scale::scale ( double  s)

Create scaling transformation, same scaling in x,y and z.

Parameters
sdouble, scale factor in x,y and z

◆ scale() [2/2]

scale::scale ( double  sx,
double  sy,
double  sz = 1.0 
)

Create scaling transformation, individual scaling in x,y and z.

Parameters
sxdouble, scale factor in x
sydouble, scale factor in y
szdouble, scale factor in z

Member Function Documentation

◆ sx()

double scale::sx ( ) const

scale factor in x direction

Returns
double, scale factor in x direction

◆ sy()

double scale::sy ( ) const

scale factor in y direction

Returns
double, scale factor in y direction

◆ sz()

double scale::sz ( ) const

scale factor in z direction

Returns
double, scale factor in z direction

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