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

vec2 Class Reference

#include <algebra3.h>

List of all members.

Public Member Functions

 vec2 ()
 vec2 (float x, float y)
 vec2 (const vec2 &v)
 vec2 (const vec3 &v)
 vec2 (const vec3 &v, int dropAxis)
vec2operator= (const vec2 &v)
vec2operator+= (const vec2 &v)
vec2operator-= (const vec2 &v)
vec2operator *= (float d)
vec2operator/= (float d)
float length () const
float length2 () const
vec2normalize ()
vec2apply (V_FCT_PTR fct)
void set (float x, float y)
float & operator[] (int i)
const float & operator[] (int i) const

Protected Attributes

float n [2]

Friends

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


Constructor & Destructor Documentation

vec2::vec2  ) 
 

vec2::vec2 float  x,
float  y
 

vec2::vec2 const vec2 v  ) 
 

vec2::vec2 const vec3 v  ) 
 

vec2::vec2 const vec3 v,
int  dropAxis
 


Member Function Documentation

vec2 & vec2::apply V_FCT_PTR  fct  ) 
 

float vec2::length  )  const
 

float vec2::length2  )  const
 

vec2 & vec2::normalize  ) 
 

vec2 & vec2::operator *= float  d  ) 
 

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

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

vec2 & vec2::operator/= float  d  ) 
 

vec2 & vec2::operator= const vec2 v  ) 
 

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

float & vec2::operator[] int  i  ) 
 

void vec2::set float  x,
float  y
 


Friends And Related Function Documentation

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

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

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

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

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

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

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

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

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

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

vec2 operator- const vec2 v  )  [friend]
 

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

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

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

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

void swap vec2 a,
vec2 b
[friend]
 


Member Data Documentation

float vec2::n[2] [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