Blender  V2.59
Public Member Functions
AUD_Quaternion Class Reference

#include <AUD_3DMath.h>

List of all members.

Public Member Functions

 AUD_Quaternion (float w, float x, float y, float z)
const float & w () const
const float & x () const
const float & y () const
const float & z () const
void get (float *destination) const
const float * get () const

Detailed Description

Definition at line 35 of file AUD_3DMath.h.


Constructor & Destructor Documentation

AUD_Quaternion::AUD_Quaternion ( float  w,
float  x,
float  y,
float  z 
) [inline]

Creates a new quaternion.

Parameters:
wThe w component.
xThe x component.
yThe y component.
zThe z component.

Definition at line 58 of file AUD_3DMath.h.


Member Function Documentation

void AUD_Quaternion::get ( float *  destination) const [inline]

Retrieves the components of the vector.

Parameters:
destinationWhere the 4 float values should be saved to.

Definition at line 103 of file AUD_3DMath.h.

References m_w, m_x, m_y, and m_z.

const float* AUD_Quaternion::get ( ) const [inline]

Retrieves the components of the vector.

Returns:
The components as float[4].

Definition at line 115 of file AUD_3DMath.h.

References m_v.

const float& AUD_Quaternion::w ( ) const [inline]

Retrieves the w component of the quarternion.

Returns:
The w component.

Definition at line 67 of file AUD_3DMath.h.

References m_w.

Referenced by Device_get_listener_orientation(), Handle_get_orientation(), AUD_OpenALDevice::setListenerOrientation(), and AUD_OpenALDevice::setSourceOrientation().

const float& AUD_Quaternion::x ( ) const [inline]

Retrieves the x component of the quarternion.

Returns:
The x component.

Definition at line 76 of file AUD_3DMath.h.

References m_x.

Referenced by Device_get_listener_orientation(), Handle_get_orientation(), AUD_OpenALDevice::setListenerOrientation(), and AUD_OpenALDevice::setSourceOrientation().

const float& AUD_Quaternion::y ( ) const [inline]

Retrieves the y component of the quarternion.

Returns:
The y component.

Definition at line 85 of file AUD_3DMath.h.

References m_y.

Referenced by Device_get_listener_orientation(), Handle_get_orientation(), AUD_OpenALDevice::setListenerOrientation(), and AUD_OpenALDevice::setSourceOrientation().

const float& AUD_Quaternion::z ( ) const [inline]

Retrieves the z component of the quarternion.

Returns:
The z component.

Definition at line 94 of file AUD_3DMath.h.

References m_z.

Referenced by Device_get_listener_orientation(), Handle_get_orientation(), AUD_OpenALDevice::setListenerOrientation(), and AUD_OpenALDevice::setSourceOrientation().


Member Data Documentation

Definition at line 40 of file AUD_3DMath.h.

Referenced by get().

Definition at line 43 of file AUD_3DMath.h.

Referenced by get(), and w().

Definition at line 44 of file AUD_3DMath.h.

Referenced by get(), and x().

Definition at line 45 of file AUD_3DMath.h.

Referenced by get(), and y().

Definition at line 46 of file AUD_3DMath.h.

Referenced by get(), and z().


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