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

Public Types

typedef Vector4< VType > Self
 
typedef VType BaseType
 

Public Member Functions

 Vector4 (const VType x, const VType y, const VType z, const VType w)
 
 Vector4 (const Self &vb)
 
 Vector4 (const Vector2< VType > &vb, const VType z, const VType w)
 
 Vector4 (const Vector2< VType > &vb1, const Vector2< VType > &vb2)
 
 Vector4 (const Vector3< VType > &vb, const VType w)
 
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
 
void Set (const VType x, const VType y, const VType z, const VType w)
 
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
 
VType DotProd (const Self &vb) const
 
Self operator * (const VType k) const
 
Self operator/ (const VType k) 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
 
void z (const VType &v)
 
VType z () const
 
void w (const VType &v)
 
VType w () const
 
VType * Data ()
 
const VType * Data () const
 
VType Norm2 (void) const
 
FloatType Norm (void) const
 
Self Normalize () const
 
Self Sqrt () const
 
Self Fabs () const
 
Self Abs () const
 
Self Floor () const
 
Self Ceil () const
 
Self FRound () const
 
Vector4< int > IRound () const
 
void Clear ()
 
bool IsNaN () const
 
template<typename VType2 >
Vector4< VType > Cast (const Vector4< VType2 > &vb)
 

Static Public Member Functions

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

Detailed Description

template<typename VType>
class Vector4< VType >

Definition at line 22 of file vector2.h.


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