doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
idVec4 Class Reference

#include <Vector.h>

Public Member Functions

 idVec4 (void)
 
 idVec4 (const float x, const float y, const float z, const float w)
 
void Set (const float x, const float y, const float z, const float w)
 
void Zero (void)
 
float operator[] (const int index) const
 
floatoperator[] (const int index)
 
idVec4 operator- () const
 
float operator* (const idVec4 &a) const
 
idVec4 operator* (const float a) const
 
idVec4 operator/ (const float a) const
 
idVec4 operator+ (const idVec4 &a) const
 
idVec4 operator- (const idVec4 &a) const
 
idVec4operator+= (const idVec4 &a)
 
idVec4operator-= (const idVec4 &a)
 
idVec4operator/= (const idVec4 &a)
 
idVec4operator/= (const float a)
 
idVec4operator*= (const float a)
 
bool Compare (const idVec4 &a) const
 
bool Compare (const idVec4 &a, const float epsilon) const
 
bool operator== (const idVec4 &a) const
 
bool operator!= (const idVec4 &a) const
 
float Length (void) const
 
float LengthSqr (void) const
 
float Normalize (void)
 
float NormalizeFast (void)
 
int GetDimension (void) const
 
const idVec2ToVec2 (void) const
 
idVec2ToVec2 (void)
 
const idVec3ToVec3 (void) const
 
idVec3ToVec3 (void)
 
const floatToFloatPtr (void) const
 
floatToFloatPtr (void)
 
const char * ToString (int precision=2) const
 
void Lerp (const idVec4 &v1, const idVec4 &v2, const float l)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Friends

idVec4 operator* (const float a, const idVec4 b)
 

Detailed Description

Definition at line 808 of file Vector.h.

Constructor & Destructor Documentation

ID_INLINE idVec4::idVec4 ( void  )

Definition at line 863 of file Vector.h.

ID_INLINE idVec4::idVec4 ( const float  x,
const float  y,
const float  z,
const float  w 
)
explicit

Definition at line 866 of file Vector.h.

Member Function Documentation

ID_INLINE bool idVec4::Compare ( const idVec4 a) const

Definition at line 967 of file Vector.h.

ID_INLINE bool idVec4::Compare ( const idVec4 a,
const float  epsilon 
) const

Definition at line 971 of file Vector.h.

ID_INLINE int idVec4::GetDimension ( void  ) const

Definition at line 1031 of file Vector.h.

ID_INLINE float idVec4::Length ( void  ) const

Definition at line 999 of file Vector.h.

ID_INLINE float idVec4::LengthSqr ( void  ) const

Definition at line 1003 of file Vector.h.

void idVec4::Lerp ( const idVec4 v1,
const idVec4 v2,
const float  l 
)

Definition at line 318 of file Vector.cpp.

ID_INLINE float idVec4::Normalize ( void  )

Definition at line 1007 of file Vector.h.

ID_INLINE float idVec4::NormalizeFast ( void  )

Definition at line 1019 of file Vector.h.

ID_INLINE bool idVec4::operator!= ( const idVec4 a) const

Definition at line 995 of file Vector.h.

ID_INLINE float idVec4::operator* ( const idVec4 a) const

Definition at line 900 of file Vector.h.

ID_INLINE idVec4 idVec4::operator* ( const float  a) const

Definition at line 904 of file Vector.h.

ID_INLINE idVec4 & idVec4::operator*= ( const float  a)

Definition at line 958 of file Vector.h.

ID_INLINE idVec4 idVec4::operator+ ( const idVec4 a) const

Definition at line 917 of file Vector.h.

ID_INLINE idVec4 & idVec4::operator+= ( const idVec4 a)

Definition at line 921 of file Vector.h.

ID_INLINE idVec4 idVec4::operator- ( ) const

Definition at line 892 of file Vector.h.

ID_INLINE idVec4 idVec4::operator- ( const idVec4 a) const

Definition at line 896 of file Vector.h.

ID_INLINE idVec4 & idVec4::operator-= ( const idVec4 a)

Definition at line 949 of file Vector.h.

ID_INLINE idVec4 idVec4::operator/ ( const float  a) const

Definition at line 908 of file Vector.h.

ID_INLINE idVec4 & idVec4::operator/= ( const idVec4 a)

Definition at line 930 of file Vector.h.

ID_INLINE idVec4 & idVec4::operator/= ( const float  a)

Definition at line 939 of file Vector.h.

ID_INLINE bool idVec4::operator== ( const idVec4 a) const

Definition at line 991 of file Vector.h.

ID_INLINE float idVec4::operator[] ( const int  index) const

Definition at line 884 of file Vector.h.

ID_INLINE float & idVec4::operator[] ( const int  index)

Definition at line 888 of file Vector.h.

ID_INLINE void idVec4::Set ( const float  x,
const float  y,
const float  z,
const float  w 
)

Definition at line 873 of file Vector.h.

ID_INLINE const float * idVec4::ToFloatPtr ( void  ) const

Definition at line 1051 of file Vector.h.

ID_INLINE float * idVec4::ToFloatPtr ( void  )

Definition at line 1055 of file Vector.h.

const char * idVec4::ToString ( int  precision = 2) const

Definition at line 307 of file Vector.cpp.

ID_INLINE const idVec2 & idVec4::ToVec2 ( void  ) const

Definition at line 1035 of file Vector.h.

ID_INLINE idVec2 & idVec4::ToVec2 ( void  )

Definition at line 1039 of file Vector.h.

ID_INLINE const idVec3 & idVec4::ToVec3 ( void  ) const

Definition at line 1043 of file Vector.h.

ID_INLINE idVec3 & idVec4::ToVec3 ( void  )

Definition at line 1047 of file Vector.h.

ID_INLINE void idVec4::Zero ( void  )

Definition at line 880 of file Vector.h.

Friends And Related Function Documentation

idVec4 operator* ( const float  a,
const idVec4  b 
)
friend

Definition at line 913 of file Vector.h.

Member Data Documentation

float idVec4::w

Definition at line 813 of file Vector.h.

float idVec4::x

Definition at line 810 of file Vector.h.

float idVec4::y

Definition at line 811 of file Vector.h.

float idVec4::z

Definition at line 812 of file Vector.h.


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