vec4 Struct Reference

#include <geom.h>

List of all members.

Public Member Functions

 vec4 ()
 vec4 (const vec &p, float w=0)
 vec4 (float x, float y, float z, float w)
float & operator[] (int i)
float operator[] (int i) const

Public Attributes

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


Constructor & Destructor Documentation

vec4::vec4 (  )  [inline]

vec4::vec4 ( const vec &  p,
float  w = 0 
) [inline, explicit]

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


Member Function Documentation

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

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


Member Data Documentation

union { ... }

float vec4::v[4]

float vec4::w

float vec4::x

float vec4::y

float vec4::z


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

Generated on Mon Dec 8 21:41:37 2008 for AssaultCube by  doxygen 1.5.7.1