OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vec2 Struct Reference

#include <matrix.h>

Public Types

enum  { vector_size = 2 }
 
enum  { vector_size = 2 }
 
enum  { vector_size = 2 }
 
typedef float data_type
 
typedef vec2 vector_type
 
typedef float data_type
 
typedef vec2 vector_type
 

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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
 vec2 ()
 
 vec2 (float s)
 
 vec2 (float x, float y)
 
 vec2 (const float *vec)
 
 vec2 ()
 
 vec2 (float s)
 
 vec2 (float x, float y)
 
 vec2 (const float *vec)
 
 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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
 vec2 ()
 
 vec2 (float s)
 
 vec2 (float x, float y)
 
 vec2 (const float *vec)
 
 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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
 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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 

Public Attributes

float x
 
float y
 
union {
   struct {
      float   x
 
      float   y
 
   } 
 
   float   data [2]
 
}; 
 
union {
   struct {
      float   x
 
      float   y
 
   }   c
 
   float   data [2]
 
}; 
 
union {
   struct {
      float   x
 
      float   y
 
   }   c
 
   float   data [2]
 
}; 
 

Detailed Description

Definition at line 28 of file matrix.h.

Member Typedef Documentation

Definition at line 54 of file vector_math.h.

Definition at line 54 of file vector_math.h.

Definition at line 55 of file vector_math.h.

Definition at line 55 of file vector_math.h.

Member Enumeration Documentation

anonymous enum
Enumerator
vector_size 

Definition at line 53 of file vector_math.h.

anonymous enum
Enumerator
vector_size 

Definition at line 46 of file vector_math.h.

anonymous enum
Enumerator
vector_size 

Definition at line 53 of file vector_math.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.

vec2::vec2 ( )
inline

Definition at line 56 of file vector_math.h.

vec2::vec2 ( float  s)
inline

Definition at line 57 of file vector_math.h.

vec2::vec2 ( float  x,
float  y 
)
inline

Definition at line 58 of file vector_math.h.

vec2::vec2 ( const float vec)
inline

Definition at line 59 of file vector_math.h.

vec2::vec2 ( )
inline

Definition at line 56 of file vector_math.h.

vec2::vec2 ( float  s)
inline

Definition at line 57 of file vector_math.h.

vec2::vec2 ( float  x,
float  y 
)
inline

Definition at line 58 of file vector_math.h.

vec2::vec2 ( const float vec)
inline

Definition at line 59 of file vector_math.h.

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.

vec2::vec2 ( )
inline

Definition at line 47 of file vector_math.h.

vec2::vec2 ( float  s)
inline

Definition at line 48 of file vector_math.h.

vec2::vec2 ( float  x,
float  y 
)
inline

Definition at line 49 of file vector_math.h.

vec2::vec2 ( const float vec)
inline

Definition at line 50 of file vector_math.h.

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.

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 vec2 rhs) const
inline

Definition at line 37 of file matrix.h.

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

Definition at line 37 of file matrix.h.

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) const
inline

Definition at line 39 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) 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 float  s)
inline

Definition at line 42 of file matrix.h.

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

Definition at line 42 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)
inline

Definition at line 44 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)
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) const
inline

Definition at line 36 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) 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)
inline

Definition at line 43 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)
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) const
inline

Definition at line 38 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) 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 vec2 rhs)
inline

Definition at line 45 of file matrix.h.

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

Definition at line 45 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.

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

Definition at line 40 of file matrix.h.

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

Definition at line 40 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.

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

Definition at line 47 of file matrix.h.

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

Definition at line 47 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.

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

Definition at line 48 of file matrix.h.

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

Definition at line 48 of file matrix.h.

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

Definition at line 48 of file matrix.h.

Member Data Documentation

union { ... }
union { ... }
union { ... }
struct { ... } vec2::c
struct { ... } vec2::c
float vec2::data[2]

Definition at line 51 of file vector_math.h.

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 files: