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

Rotation around z. More...

#include <angelcad.h>

Inheritance diagram for rotate_z:
tmatrix

Public Member Functions

 rotate_z (double deg=0x7fc00000, double rad=0x7fc00000)
 Create transformation as rotation around z-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 z.

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

Constructor & Destructor Documentation

◆ rotate_z()

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

Create transformation as rotation around z-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_z::deg ( ) const

rotation angle in degrees

Returns
double, rotation angle in degrees

◆ rad()

double rotate_z::rad ( ) const

rotation angle in radians

Returns
double, rotation angle in radians

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