VR SDK for Android 0.1.1 ARM Developer Center
vec4 Struct Reference

#include <matrix.h>

Public Member Functions

 vec4 ()
 
 vec4 (vec3 V, float W)
 
 vec4 (float X, float Y, float Z, float W)
 
 vec4 (float S)
 
vec4 operator- () const
 
vec4 operator+ (const vec4 &rhs) const
 
vec4 operator* (const vec4 &rhs) const
 
vec4 operator- (const vec4 &rhs) const
 
vec4 operator* (const float s) const
 
vec4 operator/ (const float s) const
 
vec4operator*= (const float s)
 
vec4operator+= (const vec4 &rhs)
 
vec4operator*= (const vec4 &rhs)
 
vec4operator-= (const vec4 &rhs)
 
float & operator[] (unsigned int i)
 
const float & operator[] (unsigned int i) const
 
vec3 xyz () const
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Detailed Description

Definition at line 75 of file matrix.h.

Constructor & Destructor Documentation

vec4::vec4 ( )
inline

Definition at line 82 of file matrix.h.

vec4::vec4 ( vec3  V,
float  W 
)
inline

Definition at line 83 of file matrix.h.

vec4::vec4 ( float  X,
float  Y,
float  Z,
float  W 
)
inline

Definition at line 84 of file matrix.h.

vec4::vec4 ( float  S)
inlineexplicit

Definition at line 85 of file matrix.h.

Member Function Documentation

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

Definition at line 88 of file matrix.h.

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

Definition at line 90 of file matrix.h.

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

Definition at line 93 of file matrix.h.

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

Definition at line 95 of file matrix.h.

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

Definition at line 87 of file matrix.h.

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

Definition at line 94 of file matrix.h.

vec4 vec4::operator- ( ) const
inline

Definition at line 86 of file matrix.h.

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

Definition at line 89 of file matrix.h.

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

Definition at line 96 of file matrix.h.

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

Definition at line 91 of file matrix.h.

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

Definition at line 98 of file matrix.h.

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

Definition at line 99 of file matrix.h.

vec3 vec4::xyz ( ) const
inline

Definition at line 101 of file matrix.h.

Member Data Documentation

float vec4::w

Definition at line 80 of file matrix.h.

float vec4::x

Definition at line 77 of file matrix.h.

float vec4::y

Definition at line 78 of file matrix.h.

float vec4::z

Definition at line 79 of file matrix.h.


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