Euler_d (struct)

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

参考

Quat

/*
** Example: Construct Euler_d
*/

RotationOrder ro('xyz');
Euler_d euler(0.0, PI, 0.0, ro);
Mat33_d matrix = euler.toMat33_d();

Euler_d Euler_d Euler_d

Members

Float64 x  
Float64 y  
Float64 z  
RotationOrder ro  

Methods

  Euler_d ( in Euler_d other )
  Euler_d ( in Float64 x, in Float64 y, in Float64 z )
  Euler_d ( in Float64 x, in Float64 y, in Float64 z, in RotationOrder order )
  Euler_d ( in Vec3_d angles )
  Euler_d ( in Vec3_d angles, in RotationOrder order )
  Euler_d ()
Boolean almostEqual ? ( in Euler_d other, in Float64 precision )
Euler_d clone ? ()
Boolean equal ? ( in Euler_d other )
Vec3_d getAngles ? ()
UInt32 hash ? ()
  set ! ( in Float64 x, in Float64 y, in Float64 z )
  set ! ( in Float64 x, in Float64 y, in Float64 z, in RotationOrder order )
  set ! ( in Vec3_d angles )
  set ! ( in Vec3_d angles, in RotationOrder order )
  setAngles ! ( in Vec3_d angles )
Mat33_d toMat33_d ? ()

Operators

  - Euler_d
Euler_d = ( Param other )

Methods in detail

Euler_d ( in Euler_d other )

copy constructor


Euler_d ( in Float64 x, in Float64 y, in Float64 z )

Constructor using three Float64s as angles in radians, RotationOrder = XYZ


Euler_d ( in Float64 x, in Float64 y, in Float64 z, in RotationOrder order )

Constructor using three Float64s as angles in radians and a RotationOrder


Euler_d ( in Vec3_d angles )

Constructor using a Vec3_d as angles in radians, RotationOrder = XYZ


Euler_d ( in Vec3_d angles, in RotationOrder order )

Constructor using a Vec3_d as radians and a RotationOrder


Euler_d ()

Default constructor


Boolean Euler_d.almostEqual? ( in Euler_d other, in Float64 precision )

Returns true if this Euler_d is almost the same as another one (based on a precision)


Euler_d Euler_d.clone? ()

clone method


Boolean Euler_d.equal? ( in Euler_d other )

Returns true if this Euler_d is the same as another one (precisely)


Vec3_d Euler_d.getAngles? ()

Returns the angles as a Vec3_d in radians


UInt32 Euler_d.hash? ()

Hash for this value


Euler_d.set! ( in Float64 x, in Float64 y, in Float64 z )

Setter using three Float64s as angles in radians, RotationOrder = XYZ


Euler_d.set! ( in Float64 x, in Float64 y, in Float64 z, in RotationOrder order )

Setter using three Float64s as angles in radians and a RotationOrder


Euler_d.set! ( in Vec3_d angles )

Setter using a Vec3_d as angles in radians, RotationOrder = XYZ


Euler_d.set! ( in Vec3_d angles, in RotationOrder order )

Setter using a Vec3_d as radians and a RotationOrder


Euler_d.setAngles! ( in Vec3_d angles )

Setter using a Vec3_d as angles in radians, RotationOrder = XYZ


Mat33_d Euler_d.toMat33_d? ()

Converts the Euler_d to a Mat33_d representing the same 3D rotation transformation

Operators in detail

unary -


Euler_d = ( Param other )

Adds another Euler to this one