Blender  V2.59
Public Member Functions
AUD_Vector3 Class Reference

#include <AUD_3DMath.h>

List of all members.

Public Member Functions

 AUD_Vector3 (float x, float y, float z)
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 121 of file AUD_3DMath.h.


Constructor & Destructor Documentation

AUD_Vector3::AUD_Vector3 ( float  x,
float  y,
float  z 
) [inline]

Creates a new 3 dimensional vector.

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

Definition at line 142 of file AUD_3DMath.h.


Member Function Documentation

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

Retrieves the components of the vector.

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

Definition at line 178 of file AUD_3DMath.h.

References m_x, m_y, and m_z.

Referenced by AUD_OpenALDevice::setListenerLocation(), AUD_OpenALDevice::setListenerVelocity(), AUD_OpenALDevice::setSourceLocation(), and AUD_OpenALDevice::setSourceVelocity().

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

Retrieves the components of the vector.

Returns:
The components as float[3].

Definition at line 189 of file AUD_3DMath.h.

References m_v.

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

Retrieves the x component of the vector.

Returns:
The x component.

Definition at line 151 of file AUD_3DMath.h.

References m_x.

Referenced by Device_get_listener_location(), Device_get_listener_velocity(), Handle_get_location(), and Handle_get_velocity().

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

Retrieves the y component of the vector.

Returns:
The y component.

Definition at line 160 of file AUD_3DMath.h.

References m_y.

Referenced by Device_get_listener_location(), Device_get_listener_velocity(), Handle_get_location(), and Handle_get_velocity().

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

Retrieves the z component of the vector.

Returns:
The z component.

Definition at line 169 of file AUD_3DMath.h.

References m_z.

Referenced by Device_get_listener_location(), Device_get_listener_velocity(), Handle_get_location(), and Handle_get_velocity().


Member Data Documentation

float AUD_Vector3::m_v[3]

Definition at line 126 of file AUD_3DMath.h.

Referenced by get().

Definition at line 129 of file AUD_3DMath.h.

Referenced by get(), and x().

Definition at line 130 of file AUD_3DMath.h.

Referenced by get(), and y().

Definition at line 131 of file AUD_3DMath.h.

Referenced by get(), and z().


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