FloatArrayΒΆ

The FloatArray struct is used to allow the returning of native float arrays without requiring dynamic memory allocation. More...

Public Member Functions

 operator const float * () const
 Use the Float Array anywhere a const float pointer can be used. More...
 
 operator float * ()
 Use the Float Array anywhere a float pointer can be used. More...
 
float & operator[] (unsigned int index)
 Access the elements of the float array exactly like a native array. More...
 

Public Attributes

float m_array [16]
 An array containing up to 16 entries of the matrix. More...
 

Detailed Description

The FloatArray struct is used to allow the returning of native float arrays without requiring dynamic memory allocation.

It represents a matrix with a size up to 4x4.

Since
1.0

Member Function Documentation

operator const float * ( ) const
inline

Use the Float Array anywhere a const float pointer can be used.

Since
1.0
operator float * ( )
inline

Use the Float Array anywhere a float pointer can be used.

Since
1.0
float& operator[] ( unsigned int  index)
inline

Access the elements of the float array exactly like a native array.

Since
1.0

Member Data Documentation

float m_array[16]

An array containing up to 16 entries of the matrix.

Since
1.0