RenderTools::Vec2 Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Vec2 (float xy=0.0f)
 Vec2 (float x, float y)
 --------------------------------Vec2-------------------------------
 Vec2 (const float *)
bool operator< (const float) const
bool operator< (const Vec2 &) const
bool operator< (const Vec3 &) const
bool operator< (const Vec4 &) const
Vec2 operator- (void) const
Vec2 operator+ (const Vec2 &) const
Vec2 operator- (const Vec2 &) const
Vec2 operator* (const Vec2 &) const
Vec2 operator* (float) const
Vec2 operator/ (const Vec2 &) const
Vec2 operator/ (float) const
bool operator== (const Vec2 &) const
const float & operator[] (const int) const
const float * operator* (void) const
float & operator[] (int)
Vec2operator+= (const Vec2 &)
Vec2operator-= (const Vec2 &)
Vec2operator*= (float)
Vec2operator*= (const Vec2 &)
Vec2operator/= (float)
Vec2operator/= (const Vec2 &)
float hyp (void) const
float len (void) const
void normalize (void)
Vec2 normalized (void) const
Vec2 abs (void) const
Vec2 sgn (void) const
Vec2 clamp (float min=0.0f, float max=1.0f) const
float dot (const Vec2 &) const
Vec2 cross (void) const
float cross (const Vec2 &) const
bool equals (const Vec2 &, float epsilon=0.0f) const
bool equals (const float *, float epsilon=0.0f) const
float toAngle () const

Static Public Member Functions

static Vec2 fromAngle (float radians)


Detailed Description

Definition at line 117 of file Matrix.h.


Constructor & Destructor Documentation

RenderTools::Vec2::Vec2 ( float  xy = 0.0f  ) 

Definition at line 318 of file Matrix.cpp.

RenderTools::Vec2::Vec2 ( float  x,
float  y 
)

--------------------------------Vec2-------------------------------

Definition at line 313 of file Matrix.cpp.

RenderTools::Vec2::Vec2 ( const float *  v  ) 

Definition at line 323 of file Matrix.cpp.


Member Function Documentation

Vec2 RenderTools::Vec2::abs ( void   )  const

Definition at line 449 of file Matrix.cpp.

Vec2 RenderTools::Vec2::clamp ( float  min = 0.0f,
float  max = 1.0f 
) const

Definition at line 457 of file Matrix.cpp.

float RenderTools::Vec2::cross ( const Vec2 v  )  const

Definition at line 477 of file Matrix.cpp.

Vec2 RenderTools::Vec2::cross ( void   )  const

Definition at line 470 of file Matrix.cpp.

float RenderTools::Vec2::dot ( const Vec2 b  )  const

Definition at line 445 of file Matrix.cpp.

bool RenderTools::Vec2::equals ( const float *  compare,
float  epsilon = 0.0f 
) const

Definition at line 522 of file Matrix.cpp.

bool RenderTools::Vec2::equals ( const Vec2 compare,
float  epsilon = 0.0f 
) const

Definition at line 518 of file Matrix.cpp.

Vec2 RenderTools::Vec2::fromAngle ( float  radians  )  [static]

Definition at line 481 of file Matrix.cpp.

float RenderTools::Vec2::hyp ( void   )  const

Definition at line 425 of file Matrix.cpp.

float RenderTools::Vec2::len ( void   )  const

Definition at line 429 of file Matrix.cpp.

void RenderTools::Vec2::normalize ( void   ) 

Definition at line 434 of file Matrix.cpp.

Vec2 RenderTools::Vec2::normalized ( void   )  const

Definition at line 440 of file Matrix.cpp.

const float * RenderTools::Vec2::operator* ( void   )  const

Definition at line 417 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator* ( float  b  )  const

Definition at line 361 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator* ( const Vec2 b  )  const

Definition at line 368 of file Matrix.cpp.

Vec2& RenderTools::Vec2::operator*= ( const Vec2  ) 

Vec2 & RenderTools::Vec2::operator*= ( float  b  ) 

Definition at line 397 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator+ ( const Vec2 b  )  const

Definition at line 347 of file Matrix.cpp.

Vec2 & RenderTools::Vec2::operator+= ( const Vec2 b  ) 

Definition at line 389 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator- ( const Vec2 b  )  const

Definition at line 354 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator- ( void   )  const

Definition at line 343 of file Matrix.cpp.

Vec2 & RenderTools::Vec2::operator-= ( const Vec2 b  ) 

Definition at line 393 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator/ ( float  b  )  const

Definition at line 382 of file Matrix.cpp.

Vec2 RenderTools::Vec2::operator/ ( const Vec2 b  )  const

Definition at line 375 of file Matrix.cpp.

Vec2 & RenderTools::Vec2::operator/= ( const Vec2 b  ) 

Definition at line 405 of file Matrix.cpp.

Vec2 & RenderTools::Vec2::operator/= ( float  b  ) 

Definition at line 401 of file Matrix.cpp.

bool RenderTools::Vec2::operator< ( const Vec4 v  )  const

Definition at line 339 of file Matrix.cpp.

bool RenderTools::Vec2::operator< ( const Vec3 v  )  const

Definition at line 335 of file Matrix.cpp.

bool RenderTools::Vec2::operator< ( const Vec2 v  )  const

Definition at line 331 of file Matrix.cpp.

bool RenderTools::Vec2::operator< ( const float  v  )  const

Definition at line 327 of file Matrix.cpp.

bool RenderTools::Vec2::operator== ( const Vec2 b  )  const

Definition at line 421 of file Matrix.cpp.

float & RenderTools::Vec2::operator[] ( int  index  ) 

Definition at line 409 of file Matrix.cpp.

const float & RenderTools::Vec2::operator[] ( const int  index  )  const

Definition at line 413 of file Matrix.cpp.

Vec2 RenderTools::Vec2::sgn ( void   )  const

Definition at line 453 of file Matrix.cpp.

float RenderTools::Vec2::toAngle ( void   )  const

Definition at line 508 of file Matrix.cpp.


The documentation for this class was generated from the following files:

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8