altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
quaternion Class Reference

#include <quaternion.h>

Public Member Functions

matrix3 to_matrix ()
 
 quaternion ()
 
 quaternion (float s, vec3 v)
 
 quaternion (float s, float x, float y, float z)
 
quaternion conjugate () const
 
quaternioncompute_w ()
 
quaternionnormalize ()
 
float magnitude () const
 
quaternionoperator= (const quaternion &q)
 
quaternion operator+ (const quaternion &q) const
 
quaternion operator- (const quaternion &q) const
 
quaternion operator- () const
 
quaternion operator* (const float scalar) const
 
quaternion operator/ (const float scalar) const
 
quaternion operator* (const vec3 &vec) const
 
quaternion operator* (const quaternion &q) const
 
quaternionoperator*= (const quaternion &q)
 
quaternionoperator+= (const quaternion &q)
 
quaternionoperator-= (const quaternion &q)
 
vec3 rotate (float delta, const vec3 &axis, const vec3 &vector)
 

Static Public Member Functions

static void slerp (const quaternion &q, const quaternion &p, float time, quaternion &result)
 

Public Attributes

float s
 
float x
 
float y
 
float z
 

Constructor & Destructor Documentation

quaternion::quaternion ( )
quaternion::quaternion ( float  s,
vec3  v 
)
quaternion::quaternion ( float  s,
float  x,
float  y,
float  z 
)

Member Function Documentation

quaternion & quaternion::compute_w ( )

Here is the call graph for this function:

Here is the caller graph for this function:

quaternion quaternion::conjugate ( ) const

Here is the caller graph for this function:

float quaternion::magnitude ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

quaternion & quaternion::normalize ( )

Here is the call graph for this function:

Here is the caller graph for this function:

quaternion quaternion::operator* ( const float  scalar) const
quaternion quaternion::operator* ( const vec3 vec) const
quaternion quaternion::operator* ( const quaternion q) const
quaternion & quaternion::operator*= ( const quaternion q)
quaternion quaternion::operator+ ( const quaternion q) const
quaternion & quaternion::operator+= ( const quaternion q)
quaternion quaternion::operator- ( const quaternion q) const
quaternion quaternion::operator- ( ) const
quaternion & quaternion::operator-= ( const quaternion q)
quaternion quaternion::operator/ ( const float  scalar) const
quaternion & quaternion::operator= ( const quaternion q)
vec3 quaternion::rotate ( float  delta,
const vec3 axis,
const vec3 vector 
)

Here is the call graph for this function:

void quaternion::slerp ( const quaternion q,
const quaternion p,
float  time,
quaternion result 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

matrix3 quaternion::to_matrix ( )

Member Data Documentation

float quaternion::s
float quaternion::x
float quaternion::y
float quaternion::z

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