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

Rotation around y. More...

#include <angelcad.h>

Inheritance diagram for rotate_y:
tmatrix

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

Rotation around y.

rotate_y is a transformation rotating around the y-axis. Positive angle according to right hand rule.

Constructor & Destructor Documentation

◆ rotate_y()

rotate_y::rotate_y ( double  deg = 0x7fc00000,
double  rad = 0x7fc00000 
)

Create transformation as rotation around y-axis.

Parameters
degdouble, rotation specified in degrees (cannot be combined with rad)
raddouble, rotation specified in radians (cannot be combined with deg)

Member Function Documentation

◆ deg()

double rotate_y::deg ( ) const

rotation angle in degrees

Returns
double, rotation angle in degrees

◆ rad()

double rotate_y::rad ( ) const

rotation angle in radians

Returns
double, rotation angle in radians

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