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

#include <matrix.h>

Public Types

enum  { vector_size = 4 }
 
enum  { vector_size = 4 }
 
enum  { vector_size = 4 }
 
typedef float data_type
 
typedef vec4 vector_type
 
typedef float data_type
 
typedef vec4 vector_type
 

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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
vec3 xyz () const
 
 vec4 ()
 
 vec4 (float s)
 
 vec4 (float x, float y, float z, float w)
 
 vec4 (const float *vec)
 
 vec4 (const vec3 &vec, float v)
 
 vec4 (const vec2 &a, const vec2 &b)
 
 vec4 (const vec2 &a, float b, float c)
 
 operator vec3 () const
 
 vec4 ()
 
 vec4 (float s)
 
 vec4 (float x, float y, float z, float w)
 
 vec4 (const float *vec)
 
 vec4 (const vec3 &vec, float v)
 
 vec4 (const vec2 &a, const vec2 &b)
 
 operator vec3 () const
 
 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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
vec3 xyz () const
 
 vec4 ()
 
 vec4 (float s)
 
 vec4 (float x, float y, float z, float w)
 
 vec4 (const float *vec)
 
 vec4 (const vec3 &vec, float v)
 
 vec4 (const vec2 &a, const vec2 &b)
 
 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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
vec3 xyz () const
 
 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)
 
floatoperator[] (unsigned int i)
 
const floatoperator[] (unsigned int i) const
 
vec3 xyz () const
 

Public Attributes

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

Detailed Description

Definition at line 75 of file matrix.h.

Member Typedef Documentation

Definition at line 115 of file vector_math.h.

Definition at line 124 of file vector_math.h.

Definition at line 116 of file vector_math.h.

Definition at line 125 of file vector_math.h.

Member Enumeration Documentation

anonymous enum
Enumerator
vector_size 

Definition at line 123 of file vector_math.h.

anonymous enum
Enumerator
vector_size 

Definition at line 114 of file vector_math.h.

anonymous enum
Enumerator
vector_size 

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

vec4::vec4 ( )
inline

Definition at line 126 of file vector_math.h.

vec4::vec4 ( float  s)
inline

Definition at line 127 of file vector_math.h.

vec4::vec4 ( float  x,
float  y,
float  z,
float  w 
)
inline

Definition at line 128 of file vector_math.h.

vec4::vec4 ( const float vec)
inline

Definition at line 129 of file vector_math.h.

vec4::vec4 ( const vec3 vec,
float  v 
)
inline

Definition at line 131 of file vector_math.h.

vec4::vec4 ( const vec2 a,
const vec2 b 
)
inline

Definition at line 136 of file vector_math.h.

vec4::vec4 ( const vec2 a,
float  b,
float  c 
)
inline

Definition at line 141 of file vector_math.h.

vec4::vec4 ( )
inline

Definition at line 117 of file vector_math.h.

vec4::vec4 ( float  s)
inline

Definition at line 118 of file vector_math.h.

vec4::vec4 ( float  x,
float  y,
float  z,
float  w 
)
inline

Definition at line 119 of file vector_math.h.

vec4::vec4 ( const float vec)
inline

Definition at line 120 of file vector_math.h.

vec4::vec4 ( const vec3 vec,
float  v 
)
inline

Definition at line 122 of file vector_math.h.

vec4::vec4 ( const vec2 a,
const vec2 b 
)
inline

Definition at line 127 of file vector_math.h.

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.

vec4::vec4 ( )
inline

Definition at line 81 of file vector_math.h.

vec4::vec4 ( float  s)
inline

Definition at line 82 of file vector_math.h.

vec4::vec4 ( float  x,
float  y,
float  z,
float  w 
)
inline

Definition at line 83 of file vector_math.h.

vec4::vec4 ( const float vec)
inline

Definition at line 84 of file vector_math.h.

vec4::vec4 ( const vec3 vec,
float  v 
)
inline

Definition at line 86 of file vector_math.h.

vec4::vec4 ( const vec2 a,
const vec2 b 
)
inline

Definition at line 91 of file vector_math.h.

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.

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::operator vec3 ( ) const
inline

Definition at line 132 of file vector_math.h.

vec4::operator vec3 ( ) const
inline

Definition at line 146 of file vector_math.h.

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

Definition at line 88 of file matrix.h.

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

Definition at line 88 of file matrix.h.

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

Definition at line 88 of file matrix.h.

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

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

Definition at line 93 of file matrix.h.

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

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

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

Definition at line 87 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) 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 vec4 rhs)
inline

Definition at line 94 of file matrix.h.

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

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

Definition at line 86 of file matrix.h.

vec4 vec4::operator- ( ) const
inline

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

Definition at line 89 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) 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 vec4 rhs)
inline

Definition at line 96 of file matrix.h.

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

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

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

Definition at line 91 of file matrix.h.

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

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

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

Definition at line 98 of file matrix.h.

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

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

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

Definition at line 99 of file matrix.h.

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

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

vec3 vec4::xyz ( ) const
inline

Definition at line 101 of file matrix.h.

vec3 vec4::xyz ( ) const
inline

Definition at line 101 of file matrix.h.

vec3 vec4::xyz ( ) const
inline

Definition at line 101 of file matrix.h.

Member Data Documentation

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

Definition at line 121 of file vector_math.h.

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