AngelCAD
1.5-00
|
Rotation around y. More...
#include <angelcad.h>
Public Member Functions | |
rotate_y (double deg=0x7fc00000, double rad=0x7fc00000) | |
Create transformation as rotation around y-axis. More... | |
double | deg () const |
rotation angle in degrees More... | |
double | rad () const |
rotation angle in radians 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... | |
Rotation around y.
rotate_y is a transformation rotating around the y-axis. Positive angle according to right hand rule.
rotate_y::rotate_y | ( | double | deg = 0x7fc00000 , |
double | rad = 0x7fc00000 |
||
) |
Create transformation as rotation around y-axis.
deg | double, rotation specified in degrees (cannot be combined with rad) |
rad | double, rotation specified in radians (cannot be combined with deg) |
double rotate_y::deg | ( | ) | const |
rotation angle in degrees
double rotate_y::rad | ( | ) | const |
rotation angle in radians