|
"L. Spiro Engine"
|
A template for any type of 2D vector. More...
#include <LSMVector2Base.h>
Public Member Functions | |
| LSE_CALLCTOR | CVector2Base (const _tInher &_v2bOther) |
| LSE_CALLCTOR | CVector2Base (_tType _fX, _tType _fY) |
| LSE_CALLCTOR | CVector2Base (_tType *_pfValues) |
| _tType LSE_FCALL | operator[] (LSUINT32 _ui32Index) const |
| _tType &LSE_FCALL | operator[] (LSUINT32 _ui32Index) |
| _tInher &LSE_FCALL | operator= (const _tInher &_v2bOther) |
| _tInher LSE_FCALL | operator- () const |
| _tInher LSE_FCALL | operator+ (const _tInher &_v2bOther) const |
| _tInher LSE_FCALL | operator- (const _tInher &_v2bOther) const |
| _tInher LSE_FCALL | operator* (_tType _tValue) const |
| _tInher LSE_FCALL | operator/ (_tType _tValue) const |
| _tInher &LSE_FCALL | operator+= (const _tInher &_v2bOther) |
| _tInher &LSE_FCALL | operator-= (const _tInher &_v2bOther) |
| _tInher &LSE_FCALL | operator*= (_tType _tValue) |
| _tInher &LSE_FCALL | operator/= (_tType _tValue) |
| _tType LSE_FCALL | operator* (const _tInher &_v2bOther) const |
| LSBOOL LSE_FCALL | operator== (const _tInher &_v2bOther) const |
| LSBOOL LSE_FCALL | operator!= (const _tInher &_v2bOther) const |
| LSVOID LSE_FCALL | Set (_tType _fX, _tType _fY) |
| LSVOID LSE_FCALL | Clear () |
| LSVOID LSE_FCALL | Invert () |
| _tType LSE_FCALL | Len () const |
| _tType LSE_FCALL | LenSq () const |
| LSVOID LSE_FCALL | Normalize () |
| _tType LSE_FCALL | Dot (const CVector2Base< _tType, _tInher > &_v2bOther) const |
Static Public Member Functions | |
| static _tType LSE_FCALL | DotProduct (const CVector2Base< _tType, _tInher > &_v2bLeft, const CVector2Base< _tType, _tInher > &_v2bRight) |
| static CVector2Base< _tType, _tInher > LSE_FCALL | Lerp (const CVector2Base< _tType, _tInher > &_v2bLeft, const CVector2Base< _tType, _tInher > &_v2bRight, _tType _fFrac) |
| static CVector2Base< _tType, _tInher > LSE_FCALL | Hermite (const CVector2Base< _tType, _tInher > &_v2bLeft, const CVector2Base< _tType, _tInher > &_v2bT0, const CVector2Base< _tType, _tInher > &_v2bRight, const CVector2Base< _tType, _tInher > &_v2bT1, _tType _fFrac) |
| static CVector2Base< _tType, _tInher > LSE_FCALL | CatmullRom (const CVector2Base< _tType, _tInher > &_v2bV0, const CVector2Base< _tType, _tInher > &_v2bV1, const CVector2Base< _tType, _tInher > &_v2bV2, const CVector2Base< _tType, _tInher > &_v2bV3, _tType _fFrac) |
Public Attributes | |
| _tType | x |
| _tType | y |
A template for any type of 2D vector.
Class CVector2Base Description: A template for any type of 2D vector.
| static CVector2Base<_tType, _tInher> LSE_FCALL lsm::CVector2Base< _tType, _tInher >::CatmullRom | ( | const CVector2Base< _tType, _tInher > & | _v2bV0, |
| const CVector2Base< _tType, _tInher > & | _v2bV1, | ||
| const CVector2Base< _tType, _tInher > & | _v2bV2, | ||
| const CVector2Base< _tType, _tInher > & | _v2bV3, | ||
| _tType | _fFrac | ||
| ) | [inline, static] |
Perform a Catmull-Rom spline interpolation between the supplied vectors
| _v2bV0 | Input point 0. |
| _v2bV1 | Input point 1. |
| _v2bV2 | Input point 2. |
| _v2bV3 | Input point 3. |
| _fFrac | Amount by which to interpolate between _v2bV1 and _v2bV2. |
| LSVOID LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Clear | ( | ) | [inline] |
Sets all axes on this vector to 0.
| _tType LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Dot | ( | const CVector2Base< _tType, _tInher > & | _v2bOther | ) | const [inline] |
Performs a dot-product operation. The dot product of two normalized vectors is the cosine of the angle between them.
| _v2bOther | The vector against which the dot product is to be determined. |
| static _tType LSE_FCALL lsm::CVector2Base< _tType, _tInher >::DotProduct | ( | const CVector2Base< _tType, _tInher > & | _v2bLeft, |
| const CVector2Base< _tType, _tInher > & | _v2bRight | ||
| ) | [inline, static] |
Performs a dot-product operation. The dot product of two normalized vectors is the cosine of the angle between them.
| _v2bLeft | The left operand. |
| _v2bRight | The right operand. |
| static CVector2Base<_tType, _tInher> LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Hermite | ( | const CVector2Base< _tType, _tInher > & | _v2bLeft, |
| const CVector2Base< _tType, _tInher > & | _v2bT0, | ||
| const CVector2Base< _tType, _tInher > & | _v2bRight, | ||
| const CVector2Base< _tType, _tInher > & | _v2bT1, | ||
| _tType | _fFrac | ||
| ) | [inline, static] |
Perform a Hermite spline interpolation between the supplied vectors.
| _v2bLeft | Left operand. |
| _v2bT0 | Left tangent. |
| _v2bRight | Right operand. |
| _v2bT1 | Right tangent. |
| _fFrac | Amount by which to interpolate between the vectors. |
| LSVOID LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Invert | ( | ) | [inline] |
Negates each axis on this vector.
| _tType LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Len | ( | ) | const [inline] |
Calculates the length of the vector.
| _tType LSE_FCALL lsm::CVector2Base< _tType, _tInher >::LenSq | ( | ) | const [inline] |
Calculates the squared length of the vector.
| static CVector2Base<_tType, _tInher> LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Lerp | ( | const CVector2Base< _tType, _tInher > & | _v2bLeft, |
| const CVector2Base< _tType, _tInher > & | _v2bRight, | ||
| _tType | _fFrac | ||
| ) | [inline, static] |
Linearly interpolate between two vectors, returning the resulting vector.
| _v2bLeft | Left operand. |
| _v2bRight | Right operand. |
| _fFrac | Amount by which to interpolate between the vectors. |
| LSVOID LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Normalize | ( | ) | [inline] |
Normalizes this vector. Normalization is the process of adjusting the length of the vector so that it is unit length (1 unit in length) while maintaining its direction. Accuracy/speed depends on the LSM_PERFORMANCE macro.
| LSBOOL LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator!= | ( | const _tInher & | _v2bOther | ) | const [inline] |
Inequality.
| _v2bOther | The vector to check for inequality. |
| _tInher LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator* | ( | _tType | _tValue | ) | const [inline] |
Binary multiplication.
| _tValue | The amount by which to multiply each component in this vector. |
| _tType LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator* | ( | const _tInher & | _v2bOther | ) | const [inline] |
Performs a dot-product operation. The dot product of two normalized vectors is the cosine of the angle between them.
| _v2bOther | The vector against which the dot product is to be determined. |
| _tInher& LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator*= | ( | _tType | _tValue | ) | [inline] |
Multiply the vector by a given amount, storing the result in this vector.
| _tValue | The amount by which to multiply each component in this vector. |
| _tInher LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator+ | ( | const _tInher & | _v2bOther | ) | const [inline] |
Binary addition.
| _v2bOther | The vector to add to this one componentwise. |
| _tInher& LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator+= | ( | const _tInher & | _v2bOther | ) | [inline] |
Add a vector to this vector, storing the result in this vector.
| _v2bOther | The vector to add to this vector. |
| _tInher LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator- | ( | ) | const [inline] |
Unary -.
| _tInher LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator- | ( | const _tInher & | _v2bOther | ) | const [inline] |
Binary subtraction.
| _v2bOther | The vector to subtract from this one componentwise. |
| _tInher& LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator-= | ( | const _tInher & | _v2bOther | ) | [inline] |
Subtract a vector from this vector, storing the result in this vector.
| _v2bOther | The vector to subtract from this vector. |
| _tInher LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator/ | ( | _tType | _tValue | ) | const [inline] |
Binary division.
| _tValue | The amount by which to divide each component in this vector. |
| _tInher& LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator/= | ( | _tType | _tValue | ) | [inline] |
Divide the vector by a given amount, storing the result in this vector.
| _tValue | The amount by which to divide each component in this vector. |
| _tInher& LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator= | ( | const _tInher & | _v2bOther | ) | [inline] |
Assignment.
| _v2bOther | The vector to copy. |
| LSBOOL LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator== | ( | const _tInher & | _v2bOther | ) | const [inline] |
Equality.
| _v2bOther | The vector to check for equality. |
| _tType LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator[] | ( | LSUINT32 | _ui32Index | ) | const [inline] |
Array access.
| _ui32Index | Index of the dimension to get. |
| _tType& LSE_FCALL lsm::CVector2Base< _tType, _tInher >::operator[] | ( | LSUINT32 | _ui32Index | ) | [inline] |
Array access.
| _ui32Index | Index of the dimension to get. |
| LSVOID LSE_FCALL lsm::CVector2Base< _tType, _tInher >::Set | ( | _tType | _fX, |
| _tType | _fY | ||
| ) | [inline] |
Apply the given values to each of the axes on this vector.
| _fX | The new X-axis value. |
| _fY | The new Y-axis value. |
| _tType lsm::CVector2Base< _tType, _tInher >::x |
The X value.
| _tType lsm::CVector2Base< _tType, _tInher >::y |
The Y value.
1.7.3