|
Classes |
class | Rec2_T |
| Rectangle representation (incomplete). More...
|
class | Vec2_T |
| Two dimensional vector representation (incomplete). More...
|
Typedefs |
typedef float | fixed |
| Fixed-point floating number representation.
|
typedef Vec2_T< int > | Vec2i_t |
typedef Vec2_T< float > | Vec2f_t |
typedef Vec2_T< fixed > | Vec2x_t |
typedef Rec2_T< int > | Rec2i_t |
typedef Rec2_T< float > | Rec2f_t |
typedef Rec2_T< fixed > | Rec2x_t |
Functions |
template<typename T> |
T | Min (T tVal1, T tVal2) |
template<typename T> |
T | Max (T tVal1, T tVal2) |
template<typename T> |
T | Clamp (T tVal, T tMinVal, T tMaxVal) |
template<typename T> |
T | Abs (T tVal) |
template<typename T> |
T | Sgn (T tVal) |
template<typename T> |
T | Floor (T tVal) |
float | Sin (float fAngle) |
float | Cos (float fAngle) |
void | SinCos (float tAngle, float &tSin, float &tCos) |
template<typename T> |
T | Sqrt (T tVal) |
template<typename T> |
T | SqrtInv (T tVal) |
template<typename T> |
T | Norm (T tVal, T tMin, T tMax) |
int | Norm0_360 (int nVal) |
float | Norm0_360 (float fVal) |
template<typename T> |
Vec2_T< T > | operator * (T t, const Vec2_T< T > &RHS) |
Variables |
const float | EPS = 1.192092896e-07f |
const float | PI = 3.14159265358979323846f |
const float | PI360 = 2.0f * PI |
const float | PI90 = .5f * PI |
const float | PI45 = .25f * PI |
const float | DEG2RAD = PI / 180.0f |
const float | RAD2DEG = 180.0f / PI |