Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

vec4 Class Reference

#include <algebra3.h>

List of all members.

Public Member Functions

 vec4 ()
 vec4 (float x, float y, float z, float w)
 vec4 (const vec4 &v)
 vec4 (const vec3 &v)
 vec4 (const vec3 &v, float d)
vec4operator= (const vec4 &v)
vec4operator+= (const vec4 &v)
vec4operator-= (const vec4 &v)
vec4operator *= (float d)
vec4operator/= (float d)
float length () const
float length2 () const
vec4normalize ()
vec4apply (V_FCT_PTR fct)
vec4homogenize ()
void print (FILE *file, const char *name) const
void set (float x, float y, float z, float a)
float & operator[] (int i)
const float & operator[] (int i) const

Protected Attributes

float n [4]

Friends

vec4 operator- (const vec4 &v)
vec4 operator+ (const vec4 &a, const vec4 &b)
vec4 operator- (const vec4 &a, const vec4 &b)
vec4 operator * (const vec4 &a, float d)
vec4 operator * (float d, const vec4 &a)
vec4 operator * (const mat4 &a, const vec4 &v)
vec4 operator * (const vec4 &v, const mat4 &a)
float operator * (const vec4 &a, const vec4 &b)
vec4 operator/ (const vec4 &a, float d)
int operator== (const vec4 &a, const vec4 &b)
int operator!= (const vec4 &a, const vec4 &b)
void swap (vec4 &a, vec4 &b)
vec4 min_vec (const vec4 &a, const vec4 &b)
vec4 max_vec (const vec4 &a, const vec4 &b)
vec4 prod (const vec4 &a, const vec4 &b)
vec3 operator * (const mat4 &a, const vec3 &v)
mat4 operator * (const mat4 &a, const mat4 &b)


Constructor & Destructor Documentation

vec4::vec4  ) 
 

vec4::vec4 float  x,
float  y,
float  z,
float  w
 

vec4::vec4 const vec4 v  ) 
 

vec4::vec4 const vec3 v  ) 
 

vec4::vec4 const vec3 v,
float  d
 


Member Function Documentation

vec4 & vec4::apply V_FCT_PTR  fct  ) 
 

vec4 & vec4::homogenize  ) 
 

float vec4::length  )  const
 

float vec4::length2  )  const
 

vec4 & vec4::normalize  ) 
 

vec4 & vec4::operator *= float  d  ) 
 

vec4 & vec4::operator+= const vec4 v  ) 
 

vec4 & vec4::operator-= const vec4 v  ) 
 

vec4 & vec4::operator/= float  d  ) 
 

vec4 & vec4::operator= const vec4 v  ) 
 

const float & vec4::operator[] int  i  )  const
 

float & vec4::operator[] int  i  ) 
 

void vec4::print FILE *  file,
const char *  name
const
 

void vec4::set float  x,
float  y,
float  z,
float  a
 


Friends And Related Function Documentation

vec4 max_vec const vec4 a,
const vec4 b
[friend]
 

vec4 min_vec const vec4 a,
const vec4 b
[friend]
 

mat4 operator * const mat4 a,
const mat4 b
[friend]
 

vec3 operator * const mat4 a,
const vec3 v
[friend]
 

float operator * const vec4 a,
const vec4 b
[friend]
 

vec4 operator * const vec4 v,
const mat4 a
[friend]
 

vec4 operator * const mat4 a,
const vec4 v
[friend]
 

vec4 operator * float  d,
const vec4 a
[friend]
 

vec4 operator * const vec4 a,
float  d
[friend]
 

int operator!= const vec4 a,
const vec4 b
[friend]
 

vec4 operator+ const vec4 a,
const vec4 b
[friend]
 

vec4 operator- const vec4 a,
const vec4 b
[friend]
 

vec4 operator- const vec4 v  )  [friend]
 

vec4 operator/ const vec4 a,
float  d
[friend]
 

int operator== const vec4 a,
const vec4 b
[friend]
 

vec4 prod const vec4 a,
const vec4 b
[friend]
 

void swap vec4 a,
vec4 b
[friend]
 


Member Data Documentation

float vec4::n[4] [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Sep 15 17:51:58 2006 for GLUI by doxygen 1.3.6