VR SDK for Android 0.1.1 ARM Developer Center
vec2 Struct Reference

#include <matrix.h>

Public Member Functions

 vec2 ()
 
 vec2 (float X, float Y)
 
 vec2 (float S)
 
vec2 operator+ (const vec2 &rhs) const
 
vec2 operator* (const vec2 &rhs) const
 
vec2 operator- (const vec2 &rhs) const
 
vec2 operator* (const float s) const
 
vec2 operator/ (const float s) const
 
vec2operator*= (const float s)
 
vec2operator+= (const vec2 &rhs)
 
vec2operator*= (const vec2 &rhs)
 
vec2operator-= (const vec2 &rhs)
 
float & operator[] (unsigned int i)
 
const float & operator[] (unsigned int i) const
 

Public Attributes

float x
 
float y
 

Detailed Description

Definition at line 28 of file matrix.h.

Constructor & Destructor Documentation

vec2::vec2 ( )
inline

Definition at line 33 of file matrix.h.

vec2::vec2 ( float  X,
float  Y 
)
inline

Definition at line 34 of file matrix.h.

vec2::vec2 ( float  S)
inlineexplicit

Definition at line 35 of file matrix.h.

Member Function Documentation

vec2 vec2::operator* ( const vec2 rhs) const
inline

Definition at line 37 of file matrix.h.

vec2 vec2::operator* ( const float  s) const
inline

Definition at line 39 of file matrix.h.

vec2& vec2::operator*= ( const float  s)
inline

Definition at line 42 of file matrix.h.

vec2& vec2::operator*= ( const vec2 rhs)
inline

Definition at line 44 of file matrix.h.

vec2 vec2::operator+ ( const vec2 rhs) const
inline

Definition at line 36 of file matrix.h.

vec2& vec2::operator+= ( const vec2 rhs)
inline

Definition at line 43 of file matrix.h.

vec2 vec2::operator- ( const vec2 rhs) const
inline

Definition at line 38 of file matrix.h.

vec2& vec2::operator-= ( const vec2 rhs)
inline

Definition at line 45 of file matrix.h.

vec2 vec2::operator/ ( const float  s) const
inline

Definition at line 40 of file matrix.h.

float& vec2::operator[] ( unsigned int  i)
inline

Definition at line 47 of file matrix.h.

const float& vec2::operator[] ( unsigned int  i) const
inline

Definition at line 48 of file matrix.h.

Member Data Documentation

float vec2::x

Definition at line 30 of file matrix.h.

float vec2::y

Definition at line 31 of file matrix.h.


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