RenderTools::Vec3 Class Reference

#include <Matrix.h>

List of all members.

Public Member Functions

 Vec3 (float xyz=0.0f)
 Vec3 (float x, float y, float z)
 --------------------------------Vec3-------------------------------
 Vec3 (const Vec2 &xy, float z=0.0)
 Vec3 (const float *v)
bool operator< (const float) const
bool operator< (const Vec2 &) const
bool operator< (const Vec3 &) const
bool operator< (const Vec4 &) const
Vec3 operator- (void) const
Vec3 operator+ (const Vec3 &) const
Vec3 operator- (const Vec3 &) const
Vec3 operator* (const Vec3 &) const
Vec3 operator* (float) const
Vec3 operator/ (float) const
Vec3 operator/ (const Vec3 &) const
const float & operator[] (const int) const
bool operator== (const Vec3 &) const
const float * operator* (void) const
float & operator[] (int)
Vec3operator+= (const Vec3 &)
Vec3operator-= (const Vec3 &)
Vec3operator*= (float)
Vec3operator*= (const Vec3 &)
Vec3operator/= (float)
Vec3operator/= (const Vec3 &)
Vec2 xy (void) const
float hyp (void) const
float len (void) const
void normalize (void)
Vec3 normalized (void) const
Vec3 abs (void) const
Vec3 sgn (void) const
Vec3 clamp (float min=0.0f, float max=1.0f) const
float dot (const Vec3 &) const
Vec3 cross (const Vec3 &) const
bool equals (const Vec3 &, float epsilon=0.0f) const
bool equals (const float *, float epsilon=0.0f) const
Vec2 toPolar (void) const
float getAngle (const Vec3 &xAxis=Vec3(1, 0, 0), const Vec3 &yAxis=Vec3(0, 1, 0)) const

Static Public Member Functions

static Vec3 fromPolar (const Vec2 &)
static Vec3 fromAxisAngle (const Vec3 &, const Vec3 &, float radians)


Detailed Description

Definition at line 207 of file Matrix.h.


Constructor & Destructor Documentation

RenderTools::Vec3::Vec3 ( float  xyz = 0.0f  ) 

Definition at line 690 of file Matrix.cpp.

RenderTools::Vec3::Vec3 ( float  x,
float  y,
float  z 
)

--------------------------------Vec3-------------------------------

Definition at line 684 of file Matrix.cpp.

RenderTools::Vec3::Vec3 ( const Vec2 xy,
float  z = 0.0 
)

Definition at line 700 of file Matrix.cpp.

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

Definition at line 696 of file Matrix.cpp.


Member Function Documentation

Vec3 RenderTools::Vec3::abs ( void   )  const

Definition at line 864 of file Matrix.cpp.

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

Definition at line 872 of file Matrix.cpp.

Vec3 RenderTools::Vec3::cross ( const Vec3 b  )  const

Definition at line 885 of file Matrix.cpp.

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

Definition at line 860 of file Matrix.cpp.

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

Definition at line 897 of file Matrix.cpp.

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

Definition at line 893 of file Matrix.cpp.

Vec3 RenderTools::Vec3::fromAxisAngle ( const Vec3 cp,
const Vec3 axis,
float  radians 
) [static]

Definition at line 485 of file Matrix.cpp.

Vec3 RenderTools::Vec3::fromPolar ( const Vec2 polar  )  [static]

Definition at line 910 of file Matrix.cpp.

float RenderTools::Vec3::getAngle ( const Vec3 xAxis = Vec3( 1,0,0 ),
const Vec3 yAxis = Vec3( 0,1,0 ) 
) const

Definition at line 854 of file Matrix.cpp.

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

Definition at line 815 of file Matrix.cpp.

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

Definition at line 819 of file Matrix.cpp.

void RenderTools::Vec3::normalize ( void   ) 

Definition at line 823 of file Matrix.cpp.

Vec3 RenderTools::Vec3::normalized ( void   )  const

Definition at line 834 of file Matrix.cpp.

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

Definition at line 807 of file Matrix.cpp.

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

Definition at line 743 of file Matrix.cpp.

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

Definition at line 751 of file Matrix.cpp.

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

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

Definition at line 787 of file Matrix.cpp.

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

Definition at line 727 of file Matrix.cpp.

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

Definition at line 779 of file Matrix.cpp.

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

Definition at line 735 of file Matrix.cpp.

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

Definition at line 723 of file Matrix.cpp.

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

Definition at line 783 of file Matrix.cpp.

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

Definition at line 759 of file Matrix.cpp.

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

Definition at line 767 of file Matrix.cpp.

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

Definition at line 795 of file Matrix.cpp.

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

Definition at line 791 of file Matrix.cpp.

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

Definition at line 719 of file Matrix.cpp.

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

Definition at line 715 of file Matrix.cpp.

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

Definition at line 711 of file Matrix.cpp.

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

Definition at line 707 of file Matrix.cpp.

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

Definition at line 811 of file Matrix.cpp.

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

Definition at line 799 of file Matrix.cpp.

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

Definition at line 803 of file Matrix.cpp.

Vec3 RenderTools::Vec3::sgn ( void   )  const

Definition at line 868 of file Matrix.cpp.

Vec2 RenderTools::Vec3::toPolar ( void   )  const

Definition at line 843 of file Matrix.cpp.

Vec2 RenderTools::Vec3::xy ( void   )  const

Definition at line 906 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