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

vec3 Class Reference

#include <algebra3.h>

List of all members.

Public Member Functions

 vec3 ()
 vec3 (float x, float y, float z)
 vec3 (const vec3 &v)
 vec3 (const vec2 &v)
 vec3 (const vec2 &v, float d)
 vec3 (const vec4 &v)
 vec3 (const vec4 &v, int dropAxis)
vec3operator= (const vec3 &v)
vec3operator+= (const vec3 &v)
vec3operator-= (const vec3 &v)
vec3operator *= (float d)
vec3operator/= (float d)
float length () const
float length2 () const
vec3normalize ()
vec3homogenize ()
vec3apply (V_FCT_PTR fct)
void set (float x, float y, float z)
void print (FILE *file, const char *name) const
float & operator[] (int i)
const float & operator[] (int i) const

Protected Attributes

float n [3]

Friends

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


Constructor & Destructor Documentation

vec3::vec3  ) 
 

vec3::vec3 float  x,
float  y,
float  z
 

vec3::vec3 const vec3 v  ) 
 

vec3::vec3 const vec2 v  ) 
 

vec3::vec3 const vec2 v,
float  d
 

vec3::vec3 const vec4 v  ) 
 

vec3::vec3 const vec4 v,
int  dropAxis
 


Member Function Documentation

vec3 & vec3::apply V_FCT_PTR  fct  ) 
 

vec3 & vec3::homogenize  ) 
 

float vec3::length  )  const
 

float vec3::length2  )  const
 

vec3 & vec3::normalize  ) 
 

vec3 & vec3::operator *= float  d  ) 
 

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

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

vec3 & vec3::operator/= float  d  ) 
 

vec3 & vec3::operator= const vec3 v  ) 
 

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

float & vec3::operator[] int  i  ) 
 

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

void vec3::set float  x,
float  y,
float  z
 


Friends And Related Function Documentation

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

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

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

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

vec2 operator * const mat3 a,
const vec2 v
[friend]
 

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

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

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

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

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

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

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

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

vec3 operator- const vec3 v  )  [friend]
 

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

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

vec3 operator^ const vec3 a,
const vec3 b
[friend]
 

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

void swap vec3 a,
vec3 b
[friend]
 


Member Data Documentation

float vec3::n[3] [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