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

#include <Vector.h>

Public Member Functions

 idVec6 (void)
 
 idVec6 (const float *a)
 
 idVec6 (const float a1, const float a2, const float a3, const float a4, const float a5, const float a6)
 
void Set (const float a1, const float a2, const float a3, const float a4, const float a5, const float a6)
 
void Zero (void)
 
float operator[] (const int index) const
 
floatoperator[] (const int index)
 
idVec6 operator- () const
 
idVec6 operator* (const float a) const
 
idVec6 operator/ (const float a) const
 
float operator* (const idVec6 &a) const
 
idVec6 operator- (const idVec6 &a) const
 
idVec6 operator+ (const idVec6 &a) const
 
idVec6operator*= (const float a)
 
idVec6operator/= (const float a)
 
idVec6operator+= (const idVec6 &a)
 
idVec6operator-= (const idVec6 &a)
 
bool Compare (const idVec6 &a) const
 
bool Compare (const idVec6 &a, const float epsilon) const
 
bool operator== (const idVec6 &a) const
 
bool operator!= (const idVec6 &a) const
 
float Length (void) const
 
float LengthSqr (void) const
 
float Normalize (void)
 
float NormalizeFast (void)
 
int GetDimension (void) const
 
const idVec3SubVec3 (int index) const
 
idVec3SubVec3 (int index)
 
const floatToFloatPtr (void) const
 
floatToFloatPtr (void)
 
const char * ToString (int precision=2) const
 

Private Attributes

float p [6]
 

Friends

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

Detailed Description

Definition at line 1158 of file Vector.h.

Constructor & Destructor Documentation

ID_INLINE idVec6::idVec6 ( void  )

Definition at line 1208 of file Vector.h.

ID_INLINE idVec6::idVec6 ( const float a)
explicit

Definition at line 1211 of file Vector.h.

ID_INLINE idVec6::idVec6 ( const float  a1,
const float  a2,
const float  a3,
const float  a4,
const float  a5,
const float  a6 
)
explicit

Definition at line 1215 of file Vector.h.

Member Function Documentation

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

Definition at line 1308 of file Vector.h.

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

Definition at line 1313 of file Vector.h.

ID_INLINE int idVec6::GetDimension ( void  ) const

Definition at line 1398 of file Vector.h.

ID_INLINE float idVec6::Length ( void  ) const

Definition at line 1362 of file Vector.h.

ID_INLINE float idVec6::LengthSqr ( void  ) const

Definition at line 1366 of file Vector.h.

ID_INLINE float idVec6::Normalize ( void  )

Definition at line 1370 of file Vector.h.

ID_INLINE float idVec6::NormalizeFast ( void  )

Definition at line 1384 of file Vector.h.

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

Definition at line 1345 of file Vector.h.

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

Definition at line 1236 of file Vector.h.

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

Definition at line 1240 of file Vector.h.

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

Definition at line 1260 of file Vector.h.

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

Definition at line 1252 of file Vector.h.

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

Definition at line 1284 of file Vector.h.

ID_INLINE idVec6 idVec6::operator- ( ) const

Definition at line 1224 of file Vector.h.

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

Definition at line 1256 of file Vector.h.

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

Definition at line 1294 of file Vector.h.

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

Definition at line 1244 of file Vector.h.

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

Definition at line 1270 of file Vector.h.

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

Definition at line 1341 of file Vector.h.

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

Definition at line 1228 of file Vector.h.

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

Definition at line 1232 of file Vector.h.

ID_INLINE void idVec6::Set ( const float  a1,
const float  a2,
const float  a3,
const float  a4,
const float  a5,
const float  a6 
)

Definition at line 1349 of file Vector.h.

ID_INLINE const idVec3 & idVec6::SubVec3 ( int  index) const

Definition at line 1402 of file Vector.h.

ID_INLINE idVec3 & idVec6::SubVec3 ( int  index)

Definition at line 1406 of file Vector.h.

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

Definition at line 1410 of file Vector.h.

ID_INLINE float * idVec6::ToFloatPtr ( void  )

Definition at line 1414 of file Vector.h.

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

Definition at line 375 of file Vector.cpp.

ID_INLINE void idVec6::Zero ( void  )

Definition at line 1358 of file Vector.h.

Friends And Related Function Documentation

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

Definition at line 1304 of file Vector.h.

Member Data Documentation

float idVec6::p[6]
private

Definition at line 1201 of file Vector.h.


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