AngelCAD
1.5-00
|
Scaling transformation. More...
#include <angelcad.h>
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 | |
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... | |
Scaling transformation.
scale is a transformation scaling an object, either uniformly or with different factors in different directions.
scale::scale | ( | double | s | ) |
Create scaling transformation, same scaling in x,y and z.
s | double, scale factor in x,y and z |
scale::scale | ( | double | sx, |
double | sy, | ||
double | sz = 1.0 |
||
) |
Create scaling transformation, individual scaling in x,y and z.
sx | double, scale factor in x |
sy | double, scale factor in y |
sz | double, scale factor in z |
double scale::sx | ( | ) | const |
scale factor in x direction
double scale::sy | ( | ) | const |
scale factor in y direction
double scale::sz | ( | ) | const |
scale factor in z direction