vector2 Class Reference

#include <vector2.h>

List of all members.

Detailed Description

Generic vector2 class.

Public Member Functions

 vector2 ()
 vector2 (const float _x, const float _y)
 vector2 (const vector2 &vec)
 vector2 (const float *p)
void set (const float _x, const float _y)
void set (const vector2 &vec)
void set (const float *p)
float len () const
void norm ()
void operator+= (const vector2 &v0)
void operator-= (const vector2 &v0)
void operator *= (const float s)
void operator/= (const float s)
bool isequal (const vector2 &v, const float tol=0.0f) const
int compare (const vector2 &v, float tol=0.0f) const
void rotate (float angle)
void lerp (const vector2 &v0, float lerpVal)
void lerp (const vector2 &v0, const vector2 &v1, float lerpVal)

Public Attributes

float x
float y

Constructor & Destructor Documentation

vector2::vector2 (  )  [inline]

vector2::vector2 ( const float  _x,
const float  _y 
) [inline]

vector2::vector2 ( const vector2 vec  )  [inline]

vector2::vector2 ( const float *  p  )  [inline]

Member Function Documentation

void vector2::set ( const float  _x,
const float  _y 
) [inline]

void vector2::set ( const vector2 vec  )  [inline]

void vector2::set ( const float *  p  )  [inline]

float vector2::len (  )  const [inline]

void vector2::norm (  )  [inline]

void vector2::operator+= ( const vector2 v0  )  [inline]

void vector2::operator-= ( const vector2 v0  )  [inline]

void vector2::operator *= ( const float  s  )  [inline]

void vector2::operator/= ( const float  s  )  [inline]

bool vector2::isequal ( const vector2 v,
const float  tol = 0.0f 
) const [inline]

int vector2::compare ( const vector2 v,
float  tol = 0.0f 
) const [inline]

void vector2::rotate ( float  angle  )  [inline]

void vector2::lerp ( const vector2 v0,
float  lerpVal 
) [inline]

void vector2::lerp ( const vector2 v0,
const vector2 v1,
float  lerpVal 
) [inline]

Member Data Documentation

float vector2::x

float vector2::y

The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:37 2007 for Dark Oberon by  doxygen 1.5.3