Public Member Functions | Public Attributes | List of all members
Quat Class Reference

#include <quat.h>

Public Member Functions

_FORCE_INLINE_ real_t length_squared () const
 
real_t length () const
 
void normalize ()
 
Quat normalized () const
 
Quat inverse () const
 
_FORCE_INLINE_ real_t dot (const Quat &q) const
 
void set_euler (const Vector3 &p_euler)
 
Quat slerp (const Quat &q, const real_t &t) const
 
Quat slerpni (const Quat &q, const real_t &t) const
 
Quat cubic_slerp (const Quat &q, const Quat &prep, const Quat &postq, const real_t &t) const
 
_FORCE_INLINE_ void get_axis_and_angle (Vector3 &r_axis, real_t &r_angle) const
 
void operator*= (const Quat &q)
 
Quat operator* (const Quat &q) const
 
Quat operator* (const Vector3 &v) const
 
_FORCE_INLINE_ Vector3 xform (const Vector3 &v) const
 
_FORCE_INLINE_ void operator+= (const Quat &q)
 
_FORCE_INLINE_ void operator-= (const Quat &q)
 
_FORCE_INLINE_ void operator*= (const real_t &s)
 
_FORCE_INLINE_ void operator/= (const real_t &s)
 
_FORCE_INLINE_ Quat operator+ (const Quat &q2) const
 
_FORCE_INLINE_ Quat operator- (const Quat &q2) const
 
_FORCE_INLINE_ Quat operator- () const
 
_FORCE_INLINE_ Quat operator* (const real_t &s) const
 
_FORCE_INLINE_ Quat operator/ (const real_t &s) const
 
_FORCE_INLINE_ bool operator== (const Quat &p_quat) const
 
_FORCE_INLINE_ bool operator!= (const Quat &p_quat) const
 
 operator String () const
 
void set (real_t p_x, real_t p_y, real_t p_z, real_t p_w)
 
 Quat (real_t p_x, real_t p_y, real_t p_z, real_t p_w)
 
 Quat (const Vector3 &axis, const real_t &angle)
 
 Quat (const Vector3 &v0, const Vector3 &v1)
 

Public Attributes

real_t x
 
real_t y
 
real_t z
 
real_t w
 

Detailed Description

Author
Juan Linietsky reduz.nosp@m.io@g.nosp@m.mail..nosp@m.com

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