SOFA plugin: LeapMotion  master
Open source framework for multi-physics simuation
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Leap::FloatArray Struct Reference

#include <LeapMath.h>

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.

Public Attributes

float m_array [16]
 

Public Member Functions

float & operator[] (unsigned int index)
 
 operator float * ()
 
 operator const float * () const
 

Attribute details

◆ m_array

float Leap::FloatArray::m_array[16]

An array containing up to 16 entries of the matrix

Function details

◆ operator const float *()

Leap::FloatArray::operator const float * ( ) const
inline

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

◆ operator float *()

Leap::FloatArray::operator float * ( )
inline

Use the Float Array anywhere a float pointer can be used

◆ operator[]()

float& Leap::FloatArray::operator[] ( unsigned int  index)
inline

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