Public Types | Public Member Functions | Static Public Member Functions | List of all members
Vector2< VType > Class Template Reference

Public Types

typedef Vector2< VType > Self
 
typedef VType BaseType
 

Public Member Functions

 Vector2 (const VType x, const VType y)
 
 Vector2 (const Self &vb)
 
 Vector2 (const Vector3< VType > &vb)
 
 Vector2 (const Vector4< VType > &vb)
 
void Set (const VType x, const VType y)
 
const Selfoperator= (const Self &vb)
 
Selfoperator+= (const Self &vb)
 
Selfoperator-= (const Self &vb)
 
Selfoperator *= (const VType k)
 
Selfoperator/= (const VType k)
 
Self MulComponents (const Self &vb) const
 
Self DivComponents (const Self &vb) const
 
Self operator+ (const Self &vb) const
 
Self operator- (const Self &vb) const
 
Self operator- () const
 
VType DotProd (const Self &vb) const
 
Self operator * (const VType k) const
 
Self operator/ (const VType k) const
 
VType CrossProd (const Self &vb) const
 
VType & operator[] (const int b)
 
VType operator[] (const int b) const
 
void x (const VType &v)
 
VType x () const
 
void y (const VType &v)
 
VType y () const
 
VType * Data ()
 
const VType * Data () const
 
VType Norm2 (void) const
 
FloatType Norm (void) const
 
FloatType Angle (const Self &v) const
 
Self Normalize () const
 
bool operator== (const Self &vb) const
 
bool operator!= (const Self &vb) const
 
bool aequal (const Self &vb, FloatType margin) const
 
bool operator< (const Self &vb) const
 
bool operator> (const Self &vb) const
 
bool operator<= (const Self &vb) const
 
bool operator>= (const Self &vb) const
 
Self Ortho () const
 
Self Sqrt () const
 
Self Fabs () const
 
Self Abs () const
 
Self Floor () const
 
Self Ceil () const
 
Self FRound () const
 
Vector2< int > IRound () const
 
void Clear ()
 
bool IsNaN () const
 
template<typename VType2 >
Vector2< VType > Cast (const Vector2< VType2 > &vb)
 

Static Public Member Functions

template<typename VType2 >
static Self Cast (const Vector2< VType2 > &vb)
 
static int Size ()
 
static Self NaN ()
 

Detailed Description

template<typename VType>
class Vector2< VType >

Definition at line 17 of file vector2.h.


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