Euler.kl

Types

Euler (struct)

The Euler type represents a 3D rotation as Euler X, Y, and Z angles and a RotationOrder. The X, Y, and Z angles are expressed in radians. The Euler type also provides conversion methods to Mat33.

参考

Quat

/*
** Example: Construct Euler
*/

RotationOrder ro('xyz');
Euler euler(0.0, PI, 0.0, ro);
Mat33 matrix = euler.toMat33();

Members

Scalar x  
Scalar y  
Scalar z  
RotationOrder ro  

Methods

  Euler ( in Euler other )
  Euler ( in Scalar x, in Scalar y, in Scalar z )
  Euler ( in Scalar x, in Scalar y, in Scalar z, in RotationOrder order )
  Euler ( in Vec3 angles )
  Euler ( in Vec3 angles, in RotationOrder order )
  Euler ()
Boolean almostEqual ? ( in Euler other, in Scalar precision )
Euler clone ? ()
Boolean equal ? ( in Euler other )
Vec3 getAngles ? ()
UInt32 hash ? ()
  set ! ( in Scalar x, in Scalar y, in Scalar z )
  set ! ( in Scalar x, in Scalar y, in Scalar z, in RotationOrder order )
  set ! ( in Vec3 angles )
  set ! ( in Vec3 angles, in RotationOrder order )
  setAngles ! ( in Vec3 angles )
Mat33 toMat33 ? ()

Operators

  - Euler
Euler = ( Param other )