|
static bool | SmoothMoveFloat1 (float &src, const float dest, const float fMaxStep) |
| change src from src to dest, by a maximum of fMaxStep. More...
|
|
static bool | SmoothMoveAngle1 (float &src, const float dest, const float fMaxStep) |
| change src from src to dest, by a maximum of fMaxStep. More...
|
|
static bool | SmoothMoveVec3 (Vector3 *result, const Vector3 &vPosTarget, const Vector3 &vPos, FLOAT fIncrease, FLOAT fTolerance) |
| linearly (smoothly) move vPos to vPosTarget by the amount fIncrease return true if we have reached the target. More...
|
|
static float | ToStandardAngle (float fAngle) |
| make sure that the angle is in the range (-Pi,Pi]
|
|
static bool | MatchString (const std::string &matchPattern, const std::string &matchStr) |
| check if the matchStr matches the string pattern in matchPattern More...
|
|
static bool | ComputeFacingTarget (const Vector3 &target, const Vector3 &source, FLOAT &fFacing) |
| facing target in xz plane fFacing: [out] it is in the range [0, 2PI] return true if target!=source(a valid facing can be computed)
|
|
static int | Round (float fValue) |
| get the closest integer near the specified float number. More...
|
|
static float | MinVec3 (const Vector3 &v) |
| Returns MIN(x, y, z);.
|
|
static float | MaxVec3 (const Vector3 &v) |
| Returns MAX(x, y, z);.
|
|
template<class T > |
static bool | CompareXZ (const T &a, const T &b) |
| return true if equal. More...
|
|
template<class T > |
static bool | CompareXZ (const T &a, const T &b, float epsilon) |
| return true if equal. More...
|
|
static void | GetMatrixScaling (const Matrix4 &globalMat, float *fScalingX, float *fScalingY, float *fScalingZ) |
| Get the scaling factor from globalMat. More...
|
|
static Matrix4 * | CreateBillboardMatrix (Matrix4 *pOut, const Matrix4 *matModelview, const Vector3 *vBillboardPos, bool bAxisAligned=false) |
| create a billboard matrix More...
|
|
static void | CameraRotMatrixYawPitch (Matrix4 &out, float fYaw, float fPitch) |
|
static void ParaEngine::CMath::GetMatrixScaling |
( |
const Matrix4 & |
globalMat, |
|
|
float * |
fScalingX, |
|
|
float * |
fScalingY, |
|
|
float * |
fScalingZ |
|
) |
| |
|
static |
Get the scaling factor from globalMat.
since we need to create separate physics mesh with different scaling factors even for the same mesh model. it is assumed that components of globalMat satisfies the following equation: |(globalMat._11, globalMat._12, globalMat._13)| = 1; |(globalMat._21, globalMat._22, globalMat._23)| = 1; |(globalMat._31, globalMat._32, globalMat._33)| = 1;
- Parameters
-
globalMat | the input matrix |
fScalingX | [out] maybe NULL |
fScalingY | [out] maybe NULL |
fScalingZ | [out] maybe NULL |