TexGen
Public Member Functions | Public Attributes | List of all members
TexGen::WXYZ Struct Reference

Struct for representing a quaternion. More...

#include <mymath.h>

Public Member Functions

 WXYZ ()
 Set all coordinates to 0 as default constructor. More...
 
 WXYZ (double W, double X, double Y, double Z)
 Set coordinates to those specified in the constructor. More...
 
 WXYZ (double Coords[4])
 Set coordinates to those specified in the constructor. More...
 
 WXYZ (XYZ Axis, double dAngle)
 Create rotation with axis and angle (radians) More...
 
 WXYZ (XYZ X, XYZ Y, XYZ Z)
 Create rotation with new coordinate system. More...
 
 WXYZ (double dAzimuth, double dElevation, double dTilt)
 Create rotation with 3 rotation angles (radians) More...
 

Public Attributes

double w
 
double x
 
double y
 
double z
 

Detailed Description

Struct for representing a quaternion.

Definition at line 37 of file mymath.h.

Constructor & Destructor Documentation

◆ WXYZ() [1/6]

TexGen::WXYZ::WXYZ ( )
inline

Set all coordinates to 0 as default constructor.

Definition at line 41 of file mymath.h.

References w, x, y, and z.

◆ WXYZ() [2/6]

TexGen::WXYZ::WXYZ ( double  W,
double  X,
double  Y,
double  Z 
)
inline

Set coordinates to those specified in the constructor.

Definition at line 43 of file mymath.h.

References w, x, y, and z.

◆ WXYZ() [3/6]

TexGen::WXYZ::WXYZ ( double  Coords[4])
inline

Set coordinates to those specified in the constructor.

Definition at line 45 of file mymath.h.

References w, x, y, and z.

◆ WXYZ() [4/6]

TexGen::WXYZ::WXYZ ( XYZ  Axis,
double  dAngle 
)
inline

Create rotation with axis and angle (radians)

Create a rotation Quaternion out of a normalised Axis and angle.

Definition at line 653 of file mymath.h.

References w, x, TexGen::XYZ::x, y, TexGen::XYZ::y, z, and TexGen::XYZ::z.

◆ WXYZ() [5/6]

TexGen::WXYZ::WXYZ ( XYZ  X,
XYZ  Y,
XYZ  Z 
)
inline

Create rotation with new coordinate system.

Create a rotation Quaternion out of a new coordinate system.

Definition at line 663 of file mymath.h.

References w, x, TexGen::XYZ::x, y, TexGen::XYZ::y, z, and TexGen::XYZ::z.

◆ WXYZ() [6/6]

TexGen::WXYZ::WXYZ ( double  dAzimuth,
double  dElevation,
double  dTilt 
)
inline

Create rotation with 3 rotation angles (radians)

Create a rotation Quaternion out of euler angles.

Rotations are applied in the following order: dAzimuth, dElevation, dTilt

Parameters
dAzimuthRotation about z axis
dElevationRotation about y axis
dTiltRotation about x axis

Definition at line 712 of file mymath.h.

References w, x, y, and z.

Member Data Documentation

◆ w

double TexGen::WXYZ::w

◆ x

double TexGen::WXYZ::x

◆ y

double TexGen::WXYZ::y

◆ z

double TexGen::WXYZ::z

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