acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
quaternion_type< FLOATING_TYPE > Struct Template Reference

Public Types

using FLOATING = FLOATING_TYPE

Public Member Functions

 quaternion_type (FLOATING _w, FLOATING _x, FLOATING _y, FLOATING _z)
template<prototype_number FLOATING1>
 quaternion_type (const FLOATING1 *p)
 quaternion_type (const ::sequence_type< FLOATING, 3 > &euler)
sequence_type< FLOATING, 3 > euler_angles () const
quaternion_type & set_euler_angles (const sequence_type< FLOATING, 3 > eulerAngles)
constexpr FLOATING dotted (const quaternion_type &q) const
constexpr FLOATING squared_modulus () const
FLOATING modulus () const
quaternion_type normalized () const
quaternion_type crossed (const quaternion_type &q2) const
quaternion_type slerp (const quaternion_type &q2, FLOATING t) const
quaternion_type & normalize ()
quaternion_type & set_yaw_and_pitch (const angle_type< FLOATING > &yaw, const angle_type< FLOATING > &pitch)
quaternion_type & set_yaw__pitch_and_roll (const angle_type< FLOATING > &yaw, const angle_type< FLOATING > &pitch, const angle_type< FLOATING > &roll)
angle_type< FLOATING > _roll () const
constexpr angle_type< FLOATING > roll () const
constexpr angle_type< FLOATING > _pitch () const
constexpr angle_type< FLOATING > pitch () const
constexpr angle_type< FLOATING > _yaw () const
constexpr angle_type< FLOATING > yaw () const
quaternion_type & offset_yaw_and_pitch_with_constraints (const ::angle_type< FLOATING > &angleΔYaw, const ::angle_type< FLOATING > &angleΔPitch, const ::angle_type< FLOATING > &angleMinimumPitch, const ::angle_type< FLOATING > &angleMaximumPitch)
constexpr sequence_type< FLOATING, 3 > front () const

Public Attributes

union { 
   struct { 
      FLOATING   w 
      FLOATING   x 
      FLOATING   y 
      FLOATING   z 
   } 
   FLOATING   m_coordinatea [4] 
}; 

Static Public Attributes

static constexpr ::i32 DIMENSION = 4

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