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

#include <matrix.h>

Public Types

enum  { vector_size = 3 }
 
enum  { vector_size = 3 }
 
enum  { vector_size = 3 }
 
typedef float data_type
 
typedef vec3 vector_type
 
typedef float data_type
 
typedef vec3 vector_type
 

Public Member Functions

 vec3 ()
 
 vec3 (float X, float Y, float Z)
 
 vec3 (float S)
 
vec3 operator- () const
 
vec3 operator+ (const vec3 &rhs) const
 
vec3 operator* (const vec3 &rhs) const
 
vec3 operator- (const vec3 &rhs) const
 
vec3 operator* (const float s) const
 
vec3 operator/ (const float s) const
 
vec3operator+= (const vec3 &rhs)
 
vec3operator*= (const vec3 &rhs)
 
vec3operator-= (const vec3 &rhs)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
 vec3 ()
 
 vec3 (float s)
 
 vec3 (float x, float y, float z)
 
 vec3 (const float *vec)
 
 vec3 ()
 
 vec3 (float s)
 
 vec3 (float x, float y, float z)
 
 vec3 (const float *vec)
 
 vec3 ()
 
 vec3 (float X, float Y, float Z)
 
 vec3 (float S)
 
vec3 operator- () const
 
vec3 operator+ (const vec3 &rhs) const
 
vec3 operator* (const vec3 &rhs) const
 
vec3 operator- (const vec3 &rhs) const
 
vec3 operator* (const float s) const
 
vec3 operator/ (const float s) const
 
vec3operator+= (const vec3 &rhs)
 
vec3operator*= (const vec3 &rhs)
 
vec3operator-= (const vec3 &rhs)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
 vec3 ()
 
 vec3 (float s)
 
 vec3 (float x, float y, float z)
 
 vec3 (const float *vec)
 
 vec3 ()
 
 vec3 (float X, float Y, float Z)
 
 vec3 (float S)
 
vec3 operator- () const
 
vec3 operator+ (const vec3 &rhs) const
 
vec3 operator* (const vec3 &rhs) const
 
vec3 operator- (const vec3 &rhs) const
 
vec3 operator* (const float s) const
 
vec3 operator/ (const float s) const
 
vec3operator+= (const vec3 &rhs)
 
vec3operator*= (const vec3 &rhs)
 
vec3operator-= (const vec3 &rhs)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
 vec3 ()
 
 vec3 (float X, float Y, float Z)
 
 vec3 (float S)
 
vec3 operator- () const
 
vec3 operator+ (const vec3 &rhs) const
 
vec3 operator* (const vec3 &rhs) const
 
vec3 operator- (const vec3 &rhs) const
 
vec3 operator* (const float s) const
 
vec3 operator/ (const float s) const
 
vec3operator+= (const vec3 &rhs)
 
vec3operator*= (const vec3 &rhs)
 
vec3operator-= (const vec3 &rhs)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 

Public Attributes

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

Detailed Description

Definition at line 51 of file matrix.h.

Member Typedef Documentation

Definition at line 96 of file vector_math.h.

Definition at line 105 of file vector_math.h.

Definition at line 97 of file vector_math.h.

Definition at line 106 of file vector_math.h.

Member Enumeration Documentation

anonymous enum
Enumerator
vector_size 

Definition at line 104 of file vector_math.h.

anonymous enum
Enumerator
vector_size 

Definition at line 95 of file vector_math.h.

anonymous enum
Enumerator
vector_size 

Definition at line 63 of file vector_math.h.

Constructor & Destructor Documentation

vec3::vec3 ( )
inline

Definition at line 57 of file matrix.h.

vec3::vec3 ( float  X,
float  Y,
float  Z 
)
inline

Definition at line 58 of file matrix.h.

vec3::vec3 ( float  S)
inlineexplicit

Definition at line 59 of file matrix.h.

vec3::vec3 ( )
inline

Definition at line 107 of file vector_math.h.

vec3::vec3 ( float  s)
inline

Definition at line 108 of file vector_math.h.

vec3::vec3 ( float  x,
float  y,
float  z 
)
inline

Definition at line 109 of file vector_math.h.

vec3::vec3 ( const float vec)
inline

Definition at line 110 of file vector_math.h.

vec3::vec3 ( )
inline

Definition at line 98 of file vector_math.h.

vec3::vec3 ( float  s)
inline

Definition at line 99 of file vector_math.h.

vec3::vec3 ( float  x,
float  y,
float  z 
)
inline

Definition at line 100 of file vector_math.h.

vec3::vec3 ( const float vec)
inline

Definition at line 101 of file vector_math.h.

vec3::vec3 ( )
inline

Definition at line 57 of file matrix.h.

vec3::vec3 ( float  X,
float  Y,
float  Z 
)
inline

Definition at line 58 of file matrix.h.

vec3::vec3 ( float  S)
inlineexplicit

Definition at line 59 of file matrix.h.

vec3::vec3 ( )
inline

Definition at line 64 of file vector_math.h.

vec3::vec3 ( float  s)
inline

Definition at line 65 of file vector_math.h.

vec3::vec3 ( float  x,
float  y,
float  z 
)
inline

Definition at line 66 of file vector_math.h.

vec3::vec3 ( const float vec)
inline

Definition at line 67 of file vector_math.h.

vec3::vec3 ( )
inline

Definition at line 57 of file matrix.h.

vec3::vec3 ( float  X,
float  Y,
float  Z 
)
inline

Definition at line 58 of file matrix.h.

vec3::vec3 ( float  S)
inlineexplicit

Definition at line 59 of file matrix.h.

vec3::vec3 ( )
inline

Definition at line 57 of file matrix.h.

vec3::vec3 ( float  X,
float  Y,
float  Z 
)
inline

Definition at line 58 of file matrix.h.

vec3::vec3 ( float  S)
inlineexplicit

Definition at line 59 of file matrix.h.

Member Function Documentation

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

Definition at line 62 of file matrix.h.

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

Definition at line 62 of file matrix.h.

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

Definition at line 62 of file matrix.h.

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

Definition at line 62 of file matrix.h.

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

Definition at line 64 of file matrix.h.

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

Definition at line 64 of file matrix.h.

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

Definition at line 64 of file matrix.h.

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

Definition at line 64 of file matrix.h.

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

Definition at line 68 of file matrix.h.

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

Definition at line 68 of file matrix.h.

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

Definition at line 68 of file matrix.h.

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

Definition at line 68 of file matrix.h.

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

Definition at line 61 of file matrix.h.

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

Definition at line 61 of file matrix.h.

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

Definition at line 61 of file matrix.h.

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

Definition at line 61 of file matrix.h.

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

Definition at line 67 of file matrix.h.

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

Definition at line 67 of file matrix.h.

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

Definition at line 67 of file matrix.h.

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

Definition at line 67 of file matrix.h.

vec3 vec3::operator- ( ) const
inline

Definition at line 60 of file matrix.h.

vec3 vec3::operator- ( ) const
inline

Definition at line 60 of file matrix.h.

vec3 vec3::operator- ( ) const
inline

Definition at line 60 of file matrix.h.

vec3 vec3::operator- ( ) const
inline

Definition at line 60 of file matrix.h.

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

Definition at line 63 of file matrix.h.

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

Definition at line 63 of file matrix.h.

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

Definition at line 63 of file matrix.h.

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

Definition at line 63 of file matrix.h.

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

Definition at line 69 of file matrix.h.

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

Definition at line 69 of file matrix.h.

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

Definition at line 69 of file matrix.h.

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

Definition at line 69 of file matrix.h.

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

Definition at line 65 of file matrix.h.

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

Definition at line 65 of file matrix.h.

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

Definition at line 65 of file matrix.h.

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

Definition at line 65 of file matrix.h.

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

Definition at line 71 of file matrix.h.

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

Definition at line 71 of file matrix.h.

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

Definition at line 71 of file matrix.h.

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

Definition at line 71 of file matrix.h.

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

Definition at line 72 of file matrix.h.

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

Definition at line 72 of file matrix.h.

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

Definition at line 72 of file matrix.h.

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

Definition at line 72 of file matrix.h.

Member Data Documentation

union { ... }
union { ... }
union { ... }
struct { ... } vec3::c
struct { ... } vec3::c
float vec3::data[4]

Definition at line 102 of file vector_math.h.

float vec3::x

Definition at line 53 of file matrix.h.

float vec3::y

Definition at line 54 of file matrix.h.

float vec3::z

Definition at line 55 of file matrix.h.


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