#include <cl_vectors_template.h>
Inheritance diagram for SGE::CLT_Vector< TType >:


Public Types | |
| typedef int | VectorDimType |
Public Member Functions | |
| _SG_TLS_INLINE | CLT_Vector (const CLT_Vector< TType > &_Vec) |
| Copy Constructor. | |
| template<typename TType2> | |
| CLT_Vector (const CLT_Vector< TType2 > &_Vec) | |
| Copy Constructor for different CLT_Vector template types. Ex: Allow casting from 'int' vector to 'float' vector. | |
| _SG_TLS_INLINE | CLT_Vector (const int _VectorDim, const TType *_Val) |
| Constructor, set the vector with _Val array. | |
| _SG_TLS_INLINE | CLT_Vector (const int _VectorDim, const TType _Val) |
| Constructor, set the vector will _Val. | |
| _SG_TLS_INLINE | ~CLT_Vector () |
| Default destructor, destroy the vector data table. | |
| _SG_TLS_INLINE void | Clear (int _Dim=-1) |
| Affect the vector array if _Dim and Clear the vector. If the vector dimension has not been defined yet, it wiil be set to _Dim. Else it only clear the vector. | |
| _SG_TLS_INLINE float | Length () |
| Normalize the vector so that it has length unity. | |
| _SG_TLS_INLINE float | Normalize (TType _unit=1) |
| _SG_TLS_INLINE TType | GetVal (const int _index) |
| _SG_TLS_INLINE TType * | GetPtr (const int _index) |
| _SG_TLS_INLINE int | GetDim () const |
| _SG_TLS_INLINE TType & | operator[] (const int _index) |
| Get a reference to the given axe value. | |
| _SG_TLS_INLINE TType | operator[] (const int _index) const |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator+= (const CLT_Vector< TType > &_Vec) |
| += operator using an other CLT_Vector. | |
| _SG_TLS_INLINE CLT_Vector< TType > | operator+ (const CLT_Vector< TType > &_Vec) const |
| + operator using a CLT_Vector. | |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator+= (const TType _Val) |
| += operator using a TType value. | |
| _SG_TLS_INLINE CLT_Vector< TType > | operator+ (const TType _Val) const |
| + operator using a TType value. | |
|
_SG_TLS_INLINE CLT_Vector< TType > & | operator-= (const CLT_Vector &_Vec) |
|
_SG_TLS_INLINE CLT_Vector< TType > | operator- (const CLT_Vector &_Vec) const |
| _SG_TLS_INLINE CLT_Vector< TType > | operator- () const |
| Return the current vector multipliied (-1). | |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator-= (const TType _Val) |
| _SG_TLS_INLINE CLT_Vector< TType > | operator- (const TType _Val) const |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator/= (const CLT_Vector< TType > &_Vec) |
|
_SG_TLS_INLINE CLT_Vector< TType > | operator/ (const CLT_Vector< TType > &_Vec) |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator/= (const TType _Val) |
| _SG_TLS_INLINE CLT_Vector< TType > | operator/ (const TType _Val) const |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator *= (const CLT_Vector< TType > &_Vec) |
| _SG_TLS_INLINE CLT_Vector< TType > | operator * (const CLT_Vector< TType > &_Vec) const |
|
_SG_TLS_INLINE CLT_Vector< TType > & | operator *= (const TType _Val) |
| _SG_TLS_INLINE CLT_Vector< TType > | operator * (const TType _Val) const |
|
_SG_TLS_INLINE CLT_Vector< TType > & | operator= (const CLT_Vector< TType > &_Vec) |
| operator = with other CLT_Vector<TType>. | |
|
_SG_TLS_INLINE CLT_Vector< TType > & | operator= (const TType _f) |
| operator = with TType _f. All the vector dimension will be set to _f value. | |
| _SG_TLS_INLINE CLT_Vector< TType > & | operator= (const TType *_f) |
| operator = with TType *_f. All the vector dimension will be set to _f[] value. | |
| _SG_TLS_INLINE bool | operator== (const CLT_Vector< TType > &_Vec2) |
| _SG_TLS_INLINE bool | operator!= (const CLT_Vector< TType > &_Vec2) |
| _SG_TLS_INLINE bool | operator< (const CLT_Vector< TType > &_Vec2) |
| _SG_TLS_INLINE bool | operator< (const TType _f) |
| _SG_TLS_INLINE bool | operator< (const TType *_f) |
| _SG_TLS_INLINE bool | operator> (const CLT_Vector< TType > &_Vec2) |
| _SG_TLS_INLINE bool | operator> (const TType _f) |
| _SG_TLS_INLINE bool | operator> (const TType *_f) |
| template<typename TType2> | |
| CLT_Vector< TType > & | operator= (CLT_Vector< TType2 > &_Vec2) |
Public Attributes | |
| TType * | vec |
|
||||||||||
|
Copy Constructor.
|
|
||||||||||||||
|
Copy Constructor for different CLT_Vector template types. Ex: Allow casting from 'int' vector to 'float' vector.
|
|
||||||||||||||||
|
Constructor, set the vector with _Val array.
|
|
||||||||||||||||
|
Constructor, set the vector will _Val.
|
|
|||||||||
|
Default destructor, destroy the vector data table.
|
|
||||||||||
|
Affect the vector array if _Dim and Clear the vector. If the vector dimension has not been defined yet, it wiil be set to _Dim. Else it only clear the vector.
|
|
|||||||||
|
|
|
|||||||||
|
Normalize the vector so that it has length unity.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
+ operator using a TType value.
|
|
||||||||||
|
+ operator using a CLT_Vector.
|
|
||||||||||
|
+= operator using a TType value.
|
|
||||||||||
|
+= operator using an other CLT_Vector.
|
|
||||||||||
|
|
|
|||||||||
|
Return the current vector multipliied (-1).
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
operator = with TType *_f. All the vector dimension will be set to _f[] value.
Reimplemented in SGE::CL_Vector2D< TType >, SGE::CL_Vector3D< TType >, and SGE::CL_Vector4D_Base< TType >. |
|
||||||||||
|
Get a reference to the given axe value.
|
1.4.6-NO