HPL3/SOMA/Scripting/Scripting Api/cMath

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Contents

Summary

Return Type Function and Description
float cMath_Abs(float afX)
int cMath_Abs(int alX)
float cMath_ACos(float afX)
float cMath_ASin(float afX)
float cMath_ATan(float afX)
float cMath_ATan2(float afY, float afX)
bool cMath_CheckAABBInside(const cVector3f &in avInsideMin, const cVector3f &in avInsideMax, const cVector3f &in avOutsideMin, const cVector3f &in avOutsideMax)
bool cMath_CheckAABBIntersection(const cVector3f &in avMin1, const cVector3f &in avMax1, const cVector3f &in avMin2, const cVector3f &in avMax2)
bool cMath_CheckAABBLineIntersection(const cVector3f &in avMin, const cVector3f &in avMax, const cVector3f &in avLineStart, const cVector3f &in avLineEnd, cVector3f &out avIntersectionPos, float &out afT)
bool cMath_CheckAABBSphereCollision(const cVector3f &in avMin, const cVector3f &in avMax, const cVector3f &in avCenter, float afRadius)
bool cMath_CheckBVIntersection(cBoundingVolume@+ aBV1, cBoundingVolume@+ aBV2)
bool cMath_CheckPlaneAABBCollision(const cPlanef &in aPlane, const cVector3f &in avMin, const cVector3f &in avMax, const cVector3f &in avSphereCenter, float afSphereRadius)
bool cMath_CheckPlaneAABBCollision(const cPlanef &in aPlane, const cVector3f &in avMin, const cVector3f &in avMax)
bool cMath_CheckPlaneBVCollision(const cPlanef &in aPlane, cBoundingVolume@+ aBV)
bool cMath_CheckPlaneLineIntersection(const cPlanef &in aPlane, const cVector3f &in avLineStart, const cVector3f &in avLineEnd, cVector3f &out avIntersectionPos, float &out afT)
bool cMath_CheckPlaneSphereCollision(const cPlanef &in aPlane, const cVector3f &in avCenter, float afRadius)
bool cMath_CheckPointInAABBIntersection(const cVector3f &in avPoint, const cVector3f &in avMin, const cVector3f &in avMax)
bool cMath_CheckPointInBVIntersection(const cVector3f &in avPoint, cBoundingVolume@+ aBV)
bool cMath_CheckPointInRectIntersection(const cVector2f &in avPoint, const cRect2f &in aRect)
bool cMath_CheckPointInSphereIntersection(const cVector3f &in avPoint, const cVector3f &in avSpherePos, float afSphereRadius)
bool cMath_CheckRectFit(const cRect2l &in aRectSrc, const cRect2l &in aRectDest)
bool cMath_CheckRectFit(const cRect2f &in aRectSrc, const cRect2f &in aRectDest)
bool cMath_CheckRectIntersection(const cRect2l &in aRect1, const cRect2l &in aRect2)
bool cMath_CheckRectIntersection(const cRect2f &in aRect1, const cRect2f &in aRect2)
bool cMath_CheckRectIntersection(const cVector2l &in avMin1, const cVector2l &in avMax1, const cVector2l &in avMin2, const cVector2l &in avMax2)
bool cMath_CheckRectIntersection(const cVector2f &in avMin1, const cVector2f &in avMax1, const cVector2f &in avMin2, const cVector2f &in avMax2)
bool cMath_CheckSphereIntersection(const cVector3f &in avPosA, float afRadiusA, const cVector3f &in avPosB, float afRadiusB)
bool cMath_CheckSphereLineIntersection(const cVector3f &in avSpherePos, float afSphereRadius, const cVector3f &in avLineStart, const cVector3f &in avLineEnd, float &out afT1, cVector3f &out afIntersection1, float &out afT2, cVector3f &out avIntersection2)
float cMath_Clamp(float afX, float afMin, float afMax)
int cMath_Clamp(int alX, int alMin, int alMax)
float cMath_Cos(float afX)
float cMath_Easing(eEasing aType, float afT, float afMin = 0, float afMax = 1)
cVector3f cMath_ExpandAABBMax(const cVector3f &in avBaseMax, const cVector3f &in avAddMax)
cVector3f cMath_ExpandAABBMin(const cVector3f &in avBaseMin, const cVector3f &in avAddMin)
float cMath_FastRandomFloat(int alSeed)
float cMath_GetAngleDistance(float afAngle1, float afAngle2, float afMaxAngle)
float cMath_GetAngleDistanceDeg(float afAngle1, float afAngle2)
float cMath_GetAngleDistanceRad(float afAngle1, float afAngle2)
cVector2f cMath_GetAngleDistanceVector2f(const cVector2f &in avAngle1, const cVector2f &in avAngle2, float afMaxAngle)
cVector2f cMath_GetAngleDistanceVector2fDeg(const cVector2f &in avAngle1, const cVector2f &in avAngle2)
cVector2f cMath_GetAngleDistanceVector2fRad(const cVector2f &in avAngle1, const cVector2f &in avAngle2)
cVector3f cMath_GetAngleDistanceVector3f(const cVector3f &in avAngle1, const cVector3f &in avAngle2, float afMaxAngle)
cVector3f cMath_GetAngleDistanceVector3fDeg(const cVector3f &in avAngle1, const cVector3f &in avAngle2)
cVector3f cMath_GetAngleDistanceVector3fRad(const cVector3f &in avAngle1, const cVector3f &in avAngle2)
float cMath_GetAngleFromPoints2D(const cVector2f &in aStartPos, const cVector2f &in avGoalPos)
cVector3f cMath_GetAngleFromPoints3D(const cVector3f &in avStartPos, const cVector3f &in avGoalPos)
void cMath_GetAngleFromVector(const cVector2f &in avVec, float &out afAngle, float &out afLength)
int cMath_GetBit(int alBitNum)
bool cMath_GetBitFlag(int alFlagNum, int alBit)
cRect2f cMath_GetClipRect(const cRect2f &in aRectSrc, const cRect2f &in aRectDest)
void cMath_GetClipRectFromBV(cRect2l &out aDestRect, cBoundingVolume@+ aBV, cFrustum@+ apFrustum, const cVector2l &in avScreenSize)
cRect2l cMath_GetClipRectFromNormalizedMinMax(const cVector3f &in avMin, const cVector3f &in avMax, const cVector2l &in avScreenSize)
cRect2l cMath_GetClipRectFromSphere(const cVector3f &in avPosition, float afRadius, cFrustum@+ apFrustum, const cVector2l &in avScreenSize, bool abPositionIsScreenSpace)
float cMath_GetCorrectSignOfSpeed(float afCurrent, float afDest, float afSpeed)
float cMath_GetFraction(float afVal)
bool cMath_GetNormalizedClipRectFromBV(cVector3f &out avDestMin, cVector3f &out avDestMax, cBoundingVolume@+ aBV, cFrustum@+ aFrustum)
cVector3f cMath_GetPoint3DFromSphericalCoords(const cVector3f &in avSphCenter, float afSphRadius, const cVector2f &in avSphCoords)
cVector2f cMath_GetSphericalCoordsFromPoint3D(const cVector3f &in avSphCenter, const cVector3f &in avPoint)
cVector2f cMath_GetVectorFromAngle2D(float afAngle, float afLength)
cColor cMath_HexToRGB(const tString &in asHex)
cColor cMath_HexWToRGB(const tWString &in asHex)
cColor cMath_HSBToRGB(const cVector3f &in avHSB)
float cMath_IncreaseTo(float afX, float afAdd, float afDest)
float cMath_InterpolateCosine(float afA, float afB, float afT)
float cMath_InterpolateCubic(float afX0, float afX1, float afX2, float afX3, float afT)
float cMath_InterpolateHermite(float afX0, float afX1, float afX2, float afX3, float afT, float afTension, float afBias)
float cMath_InterpolateLinear(float afA, float afB, float afT)
float cMath_InterpolateSigmoid(float afA, float afB, float afT)
bool cMath_IsPow2(int alX)
float cMath_Log(float afX)
int cMath_Log2ToInt(int alX)
cVector3f cMath_MatrixEulerAngleDistance(const cMatrixf &in a_mtxA, const cMatrixf &in a_mtxB)
cMatrixf cMath_MatrixInverse(const cMatrixf &in a_mtxA)
cMatrixf cMath_MatrixMul(const cMatrixf &in a_mtxA, const cMatrixf &in a_mtxB)
cVector3f cMath_MatrixMul(const cMatrixf &in a_mtxA, const cVector3f &in avB)
cVector3f cMath_MatrixMul3x3(const cMatrixf &in a_mtxA, const cVector3f &in avB)
cVector3f cMath_MatrixMulDivideW(const cMatrixf &in a_mtxA, const cVector3f &in avB)
cMatrixf cMath_MatrixMulScalar(const cMatrixf &in a_mtxA, float afB)
cMatrixf cMath_MatrixOrthographicProjection(float afNearClipPlane, float afFarClipPlane, const cVector2f &in avViewSize)
cMatrixf cMath_MatrixPerspectiveProjection(float afNearClipPlane, float afFarClipPlane, float afFOV, float afAspect, bool abInfFarPlane)
cMatrixf cMath_MatrixPlaneMirror(const cPlanef &in aPlane)
cMatrixf cMath_MatrixQuaternion(const cQuaternion &in aqRot)
cMatrixf cMath_MatrixRotateX(float afAngle)
cMatrixf cMath_MatrixRotateXYZ(const cVector3f &in avRot)
cMatrixf cMath_MatrixRotateXZY(const cVector3f &in avRot)
cMatrixf cMath_MatrixRotateY(float afAngle)
cMatrixf cMath_MatrixRotateYXZ(const cVector3f &in avRot)
cMatrixf cMath_MatrixRotateYZX(const cVector3f &in avRot)
cMatrixf cMath_MatrixRotateZ(float afAngle)
cMatrixf cMath_MatrixRotateZXY(const cVector3f &in avRot)
cMatrixf cMath_MatrixRotateZYX(const cVector3f &in avRot)
cMatrixf cMath_MatrixScale(const cVector3f &in avScale)
cMatrixf cMath_MatrixSlerp(float afT, const cMatrixf &in a_mtxA, const cMatrixf &in a_mtxB, bool abShortestPath)
cVector3f cMath_MatrixToEulerAngles(const cMatrixf &in a_mtxA)
cVector3f cMath_MatrixToEulerAnglesMultiSolution(const cMatrixf &in a_mtxA, cVector3f &out avSolution1, cVector3f &out avSolution2)
cMatrixf cMath_MatrixTranslate(const cVector3f &in avTrans)
cMatrixf cMath_MatrixUnitVectors(const cVector3f &in avRight, const cVector3f &in avUp, const cVector3f &in avForward, const cVector3f &in avTranslate)
float cMath_Max(float afX, float afY)
int cMath_Max(int alX, int alY)
float cMath_Min(float afX, float afY)
int cMath_Min(int alX, int alY)
float cMath_Modulus(float afDividend, float afDivisor)
float cMath_PlaneDot(const cPlanef &in aPlaneA, const cPlanef &in aPlaneB)
bool cMath_PlaneIntersectionPoint(const cPlanef &in aP1, const cPlanef &in aP2, const cPlanef &in aP3, cVector3f &in avPoint)
bool cMath_PlaneParallel(const cPlanef &in aPlaneA, const cPlanef &in aPlaneB)
float cMath_PlaneToPointDist(const cPlanef &in aPlane, const cVector3f &in avVec)
float cMath_Pow(float afX, float afExp)
int cMath_Pow2(int alX)
cMatrixf cMath_ProjectionMatrixObliqueNearClipPlane(const cMatrixf &in a_mtxProjMatrix, const cPlanef &in aClipPlane)
cVector2f cMath_ProjectVector2D(const cVector2f &in avSrcVec, const cVector2f &in avDestVec)
cQuaternion cMath_QuaternionConjugate(const cQuaternion &in aqA)
float cMath_QuaternionDot(const cQuaternion &in aqA, const cQuaternion &in aqB)
cQuaternion cMath_QuaternionEuler(const cVector3f &in avEuler, eEulerRotationOrder aOrder)
cQuaternion cMath_QuaternionInverse(const cQuaternion &in aqA)
cQuaternion cMath_QuaternionLerp(float afT, const cQuaternion &in aqA, const cQuaternion &in aqB)
cQuaternion cMath_QuaternionMatrix(const cMatrixf &in a_mtxA)
cQuaternion cMath_QuaternionMul(const cQuaternion &in aqA, const cQuaternion &in aqB)
cQuaternion cMath_QuaternionNlerp(float afT, const cQuaternion &in aqA, const cQuaternion &in aqB)
cQuaternion cMath_QuaternionNormalize(const cQuaternion &in aqA)
cQuaternion cMath_QuaternionSlerp(float afT, const cQuaternion &in aqA, const cQuaternion &in aqB, bool abShortestPath)
cVector2f cMath_RandomCircleEdgePoint(float afRadius)
void cMath_Randomize(int alSeed)
cColor cMath_RandRectColor(const cColor &in aMin, const cColor &in aMax)
float cMath_RandRectf(float alMin, float alMax)
int cMath_RandRectl(int alMin, int alMax)
cVector2f cMath_RandRectVector2f(const cVector2f &in avMin, const cVector2f &in avMax)
cVector3f cMath_RandRectVector3f(const cVector3f &in avMin, const cVector3f &in avMax)
tString cMath_RGBToHex(const cColor &in aRGB)
tWString cMath_RGBToHexW(const cColor &in aRGB)
cVector3f cMath_RGBToHSB(const cColor &in aX)
float cMath_Round(float afVal)
float cMath_RoundFloatToDecimals(float afVal, int alPrecision)
int cMath_RoundToInt(float afVal)
cVector2l cMath_RoundToInt(const cVector2f &in avX)
cVector3l cMath_RoundToInt(const cVector3f &in avX)
void cMath_SetBitFlag(int &out alFlagNum, int alBit, bool abSet)
float cMath_SigmoidCurve(float afX)
float cMath_Sign(float afX)
int cMath_Sign(int alX)
float cMath_Sin(float afX)
float cMath_Sqrt(float afX)
float cMath_Tan(float afX)
float cMath_ToDeg(float afAngle)
float cMath_ToRad(float afAngle)
cPlanef cMath_TransformPlane(const cMatrixf &in a_mtxTransform, const cPlanef &in aPlane)
float cMath_TurnAngle(float afAngle, float afFinalAngle, float afSpeed, float afMaxAngle)
float cMath_TurnAngleDeg(float afAngle, float afFinalAngle, float afSpeed)
float cMath_TurnAngleRad(float afAngle, float afFinalAngle, float afSpeed)
cVector2f cMath_Vector2Abs(const cVector2f &in avVec)
cVector2f cMath_Vector2CatmullRom(const cVector2f &in avP0, const cVector2f &in avP1, const cVector2f &in avP2, const cVector2f &in avP3, float afFract)
cVector2f cMath_Vector2Ceil(const cVector2f &in avVec)
float cMath_Vector2Dist(const cVector2f &in avPosA, const cVector2f &in avPosB)
float cMath_Vector2DistSqr(const cVector2f &in avPosA, const cVector2f &in avPosB)
float cMath_Vector2DistSqrXY(const cVector3f &in avPosA, const cVector3f &in avPosB)
float cMath_Vector2DistSqrXZ(const cVector3f &in avPosA, const cVector3f &in avPosB)
float cMath_Vector2DistSqrYZ(const cVector3f &in avPosA, const cVector3f &in avPosB)
float cMath_Vector2DistXY(const cVector3f &in avPosA, const cVector3f &in avPosB)
float cMath_Vector2DistXZ(const cVector3f &in avPosA, const cVector3f &in avPosB)
float cMath_Vector2DistYZ(const cVector3f &in avPosA, const cVector3f &in avPosB)
float cMath_Vector2Dot(const cVector2f &in avPosA, const cVector2f &in avPosB)
cVector2f cMath_Vector2Floor(const cVector2f &in avVec)
cVector2f cMath_Vector2IncreaseTo(const cVector2f &in avX, const cVector2f &in avAdd, const cVector2f &in avDest)
cVector2f cMath_Vector2Max(const cVector2f &in avVecA, const cVector2f &in avVecB)
float cMath_Vector2MaxElement(const cVector2f &in avVec)
cVector2f cMath_Vector2Min(const cVector2f &in avVecA, const cVector2f &in avVecB)
float cMath_Vector2MinElement(const cVector2f &in avVec)
cVector2f cMath_Vector2Normalize(const cVector2f &in avVec)
cVector2f cMath_Vector2Rotate(const cVector2f &in avVec, float afAngle)
cVector2f cMath_Vector2ToDeg(const cVector2f &in avVec)
cVector2f cMath_Vector2ToRad(const cVector2f &in avVec)
cVector3f cMath_Vector3Abs(const cVector3f &in avVec)
float cMath_Vector3Angle(const cVector3f &in avVecA, const cVector3f &in avVecB)
cVector3f cMath_Vector3AngleDistance(const cVector3f &in avAngles1, const cVector3f &in avAngles2, float afMaxAngle)
cVector3f cMath_Vector3AngleDistanceDeg(const cVector3f &in avAngles1, const cVector3f &in avAngles2)
cVector3f cMath_Vector3AngleDistanceRad(const cVector3f &in avAngles1, const cVector3f &in avAngles2)
cVector3f cMath_Vector3CatmullRom(const cVector3f &in avP0, const cVector3f &in avP1, const cVector3f &in avP2, const cVector3f &in avP3, float afFract)
cVector3f cMath_Vector3Ceil(const cVector3f &in avVec)
cVector3f cMath_Vector3ClampLength(const cVector3f &in avVec, float afMinLength, float afMaxLength)
void cMath_Vector3ClampToLength(cVector3f &in avVec, float afMaxLength)
cVector3f cMath_Vector3Cross(const cVector3f &in avVecA, const cVector3f &in avVecB)
float cMath_Vector3Dist(const cVector3f &in avStartPos, const cVector3f &in avEndPos)
float cMath_Vector3DistSqr(const cVector3f &in avStartPos, const cVector3f &in avEndPos)
float cMath_Vector3Dot(const cVector3f &in avVecA, const cVector3f &in avVecB)
cVector3f cMath_Vector3Floor(const cVector3f &in avVec)
cVector3f cMath_Vector3IncreaseTo(const cVector3f &in avX, const cVector3f &in avAdd, const cVector3f &in avDest)
cVector3f cMath_Vector3Max(const cVector3f &in avVecA, const cVector3f &in avVecB)
float cMath_Vector3MaxElement(const cVector3f &in avVec)
cVector3f cMath_Vector3MaxLength(const cVector3f &in avVec, float afMaxLength)
cVector3f cMath_Vector3Min(const cVector3f &in avVecA, const cVector3f &in avVecB)
float cMath_Vector3MinElement(const cVector3f &in avVec)
cVector3f cMath_Vector3MinLength(const cVector3f &in avVec, float afMinLength)
cVector3f cMath_Vector3Normalize(const cVector3f &in avVec)
void cMath_Vector3OrthonormalizeBasis(const cVector3f &in avSrcRight, const cVector3f &in avSrcUp, const cVector3f &in avSrcForward, cVector3f &out avDstRight, cVector3f &out avDstUp, cVector3f &out avDstForward)
cVector3f cMath_Vector3Project(const cVector3f &in avSrcVec, const cVector3f &in avDestVec)
cVector3f cMath_Vector3ProjectOnPlane(const cVector3f &in avSrcVec, const cVector3f &in avPlaneNormal)
cVector3f cMath_Vector3Reflect(const cVector3f &in avVec, const cVector3f &in avNormal)
cVector3f cMath_Vector3SphereSurfacePoint(const cVector2f &in avSeed, float afRadius)
cVector3f cMath_Vector3ToDeg(const cVector3f &in avVec)
cVector3f cMath_Vector3ToRad(const cVector3f &in avVec)
cVector3f cMath_Vector3UnProject(const cVector3f &in avVec, const cRect2f &in aScreenRect, const cMatrixf &in a_mtxViewProj)
float cMath_Wrap(float afX, float afMin, float afMax)

Function Detail

cMath_Abs

float cMath_Abs(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Abs

int cMath_Abs(int alX)


Parameters

  • alX (int) —

Returns:

  • int

cMath_ACos

float cMath_ACos(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_ASin

float cMath_ASin(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_ATan

float cMath_ATan(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_ATan2

float cMath_ATan2(float afY,
                  float afX)


Parameters

  • afY (float) —
  • afX (float) —

Returns:

  • float

cMath_CheckAABBInside

bool cMath_CheckAABBInside(const cVector3f &in avInsideMin,
                           const cVector3f &in avInsideMax,
                           const cVector3f &in avOutsideMin,
                           const cVector3f &in avOutsideMax)


Parameters

Returns:

  • bool

cMath_CheckAABBIntersection

bool cMath_CheckAABBIntersection(const cVector3f &in avMin1,
                                 const cVector3f &in avMax1,
                                 const cVector3f &in avMin2,
                                 const cVector3f &in avMax2)


Parameters

Returns:

  • bool

cMath_CheckAABBLineIntersection

bool cMath_CheckAABBLineIntersection(const cVector3f &in avMin,
                                     const cVector3f &in avMax,
                                     const cVector3f &in avLineStart,
                                     const cVector3f &in avLineEnd,
                                     cVector3f &out avIntersectionPos,
                                     float &out afT)


Parameters

Returns:

  • bool

cMath_CheckAABBSphereCollision

bool cMath_CheckAABBSphereCollision(const cVector3f &in avMin,
                                    const cVector3f &in avMax,
                                    const cVector3f &in avCenter,
                                    float afRadius)


Parameters

Returns:

  • bool

cMath_CheckBVIntersection

bool cMath_CheckBVIntersection(cBoundingVolume@+ aBV1,
                               cBoundingVolume@+ aBV2)


Parameters

Returns:

  • bool

cMath_CheckPlaneAABBCollision

bool cMath_CheckPlaneAABBCollision(const cPlanef &in aPlane,
                                   const cVector3f &in avMin,
                                   const cVector3f &in avMax,
                                   const cVector3f &in avSphereCenter,
                                   float afSphereRadius)


Parameters

Returns:

  • bool

cMath_CheckPlaneAABBCollision

bool cMath_CheckPlaneAABBCollision(const cPlanef &in aPlane,
                                   const cVector3f &in avMin,
                                   const cVector3f &in avMax)


Parameters

Returns:

  • bool

cMath_CheckPlaneBVCollision

bool cMath_CheckPlaneBVCollision(const cPlanef &in aPlane,
                                 cBoundingVolume@+ aBV)


Parameters

Returns:

  • bool

cMath_CheckPlaneLineIntersection

bool cMath_CheckPlaneLineIntersection(const cPlanef &in aPlane,
                                      const cVector3f &in avLineStart,
                                      const cVector3f &in avLineEnd,
                                      cVector3f &out avIntersectionPos,
                                      float &out afT)


Parameters

Returns:

  • bool

cMath_CheckPlaneSphereCollision

bool cMath_CheckPlaneSphereCollision(const cPlanef &in aPlane,
                                     const cVector3f &in avCenter,
                                     float afRadius)


Parameters

Returns:

  • bool

cMath_CheckPointInAABBIntersection

bool cMath_CheckPointInAABBIntersection(const cVector3f &in avPoint,
                                        const cVector3f &in avMin,
                                        const cVector3f &in avMax)


Parameters

Returns:

  • bool

cMath_CheckPointInBVIntersection

bool cMath_CheckPointInBVIntersection(const cVector3f &in avPoint,
                                      cBoundingVolume@+ aBV)


Parameters

Returns:

  • bool

cMath_CheckPointInRectIntersection

bool cMath_CheckPointInRectIntersection(const cVector2f &in avPoint,
                                        const cRect2f &in aRect)


Parameters

Returns:

  • bool

cMath_CheckPointInSphereIntersection

bool cMath_CheckPointInSphereIntersection(const cVector3f &in avPoint,
                                          const cVector3f &in avSpherePos,
                                          float afSphereRadius)


Parameters

Returns:

  • bool

cMath_CheckRectFit

bool cMath_CheckRectFit(const cRect2l &in aRectSrc,
                        const cRect2l &in aRectDest)


Parameters

Returns:

  • bool

cMath_CheckRectFit

bool cMath_CheckRectFit(const cRect2f &in aRectSrc,
                        const cRect2f &in aRectDest)


Parameters

Returns:

  • bool

cMath_CheckRectIntersection

bool cMath_CheckRectIntersection(const cRect2l &in aRect1,
                                 const cRect2l &in aRect2)


Parameters

Returns:

  • bool

cMath_CheckRectIntersection

bool cMath_CheckRectIntersection(const cRect2f &in aRect1,
                                 const cRect2f &in aRect2)


Parameters

Returns:

  • bool

cMath_CheckRectIntersection

bool cMath_CheckRectIntersection(const cVector2l &in avMin1,
                                 const cVector2l &in avMax1,
                                 const cVector2l &in avMin2,
                                 const cVector2l &in avMax2)


Parameters

Returns:

  • bool

cMath_CheckRectIntersection

bool cMath_CheckRectIntersection(const cVector2f &in avMin1,
                                 const cVector2f &in avMax1,
                                 const cVector2f &in avMin2,
                                 const cVector2f &in avMax2)


Parameters

Returns:

  • bool

cMath_CheckSphereIntersection

bool cMath_CheckSphereIntersection(const cVector3f &in avPosA,
                                   float afRadiusA,
                                   const cVector3f &in avPosB,
                                   float afRadiusB)


Parameters

Returns:

  • bool

cMath_CheckSphereLineIntersection

bool cMath_CheckSphereLineIntersection(const cVector3f &in avSpherePos,
                                       float afSphereRadius,
                                       const cVector3f &in avLineStart,
                                       const cVector3f &in avLineEnd,
                                       float &out afT1,
                                       cVector3f &out afIntersection1,
                                       float &out afT2,
                                       cVector3f &out avIntersection2)


Parameters

Returns:

  • bool

cMath_Clamp

float cMath_Clamp(float afX,
                  float afMin,
                  float afMax)


Parameters

  • afX (float) —
  • afMin (float) —
  • afMax (float) —

Returns:

  • float

cMath_Clamp

int cMath_Clamp(int alX,
                int alMin,
                int alMax)


Parameters

  • alX (int) —
  • alMin (int) —
  • alMax (int) —

Returns:

  • int

cMath_Cos

float cMath_Cos(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Easing

float cMath_Easing(eEasing aType,
                   float afT,
                   float afMin = 0,
                   float afMax = 1)


Parameters

  • aType (eEasing) —
  • afT (float) —
  • afMin (float) —
  • afMax (float) —

Returns:

  • float

cMath_ExpandAABBMax

cVector3f cMath_ExpandAABBMax(const cVector3f &in avBaseMax,
                              const cVector3f &in avAddMax)


Parameters

Returns:

  • cVector3f

cMath_ExpandAABBMin

cVector3f cMath_ExpandAABBMin(const cVector3f &in avBaseMin,
                              const cVector3f &in avAddMin)


Parameters

Returns:

  • cVector3f

cMath_FastRandomFloat

float cMath_FastRandomFloat(int alSeed)


Parameters

  • alSeed (int) —

Returns:

  • float

cMath_GetAngleDistance

float cMath_GetAngleDistance(float afAngle1,
                             float afAngle2,
                             float afMaxAngle)


Parameters

  • afAngle1 (float) —
  • afAngle2 (float) —
  • afMaxAngle (float) —

Returns:

  • float

cMath_GetAngleDistanceDeg

float cMath_GetAngleDistanceDeg(float afAngle1,
                                float afAngle2)


Parameters

  • afAngle1 (float) —
  • afAngle2 (float) —

Returns:

  • float

cMath_GetAngleDistanceRad

float cMath_GetAngleDistanceRad(float afAngle1,
                                float afAngle2)


Parameters

  • afAngle1 (float) —
  • afAngle2 (float) —

Returns:

  • float

cMath_GetAngleDistanceVector2f

cVector2f cMath_GetAngleDistanceVector2f(const cVector2f &in avAngle1,
                                         const cVector2f &in avAngle2,
                                         float afMaxAngle)


Parameters

Returns:

  • cVector2f

cMath_GetAngleDistanceVector2fDeg

cVector2f cMath_GetAngleDistanceVector2fDeg(const cVector2f &in avAngle1,
                                            const cVector2f &in avAngle2)


Parameters

Returns:

  • cVector2f

cMath_GetAngleDistanceVector2fRad

cVector2f cMath_GetAngleDistanceVector2fRad(const cVector2f &in avAngle1,
                                            const cVector2f &in avAngle2)


Parameters

Returns:

  • cVector2f

cMath_GetAngleDistanceVector3f

cVector3f cMath_GetAngleDistanceVector3f(const cVector3f &in avAngle1,
                                         const cVector3f &in avAngle2,
                                         float afMaxAngle)


Parameters

Returns:

  • cVector3f

cMath_GetAngleDistanceVector3fDeg

cVector3f cMath_GetAngleDistanceVector3fDeg(const cVector3f &in avAngle1,
                                            const cVector3f &in avAngle2)


Parameters

Returns:

  • cVector3f

cMath_GetAngleDistanceVector3fRad

cVector3f cMath_GetAngleDistanceVector3fRad(const cVector3f &in avAngle1,
                                            const cVector3f &in avAngle2)


Parameters

Returns:

  • cVector3f

cMath_GetAngleFromPoints2D

float cMath_GetAngleFromPoints2D(const cVector2f &in aStartPos,
                                 const cVector2f &in avGoalPos)


Parameters

Returns:

  • float

cMath_GetAngleFromPoints3D

cVector3f cMath_GetAngleFromPoints3D(const cVector3f &in avStartPos,
                                     const cVector3f &in avGoalPos)


Parameters

Returns:

  • cVector3f

cMath_GetAngleFromVector

void cMath_GetAngleFromVector(const cVector2f &in avVec,
                              float &out afAngle,
                              float &out afLength)


Parameters

  • avVec (cVector2f) —
  • afAngle (float) —
  • afLength (float) —

Returns:

  • void

cMath_GetBit

int cMath_GetBit(int alBitNum)


Parameters

  • alBitNum (int) —

Returns:

  • int

cMath_GetBitFlag

bool cMath_GetBitFlag(int alFlagNum,
                      int alBit)


Parameters

  • alFlagNum (int) —
  • alBit (int) —

Returns:

  • bool

cMath_GetClipRect

cRect2f cMath_GetClipRect(const cRect2f &in aRectSrc,
                          const cRect2f &in aRectDest)


Parameters

Returns:

  • cRect2f

cMath_GetClipRectFromBV

void cMath_GetClipRectFromBV(cRect2l &out aDestRect,
                             cBoundingVolume@+ aBV,
                             cFrustum@+ apFrustum,
                             const cVector2l &in avScreenSize)


Parameters

Returns:

  • void

cMath_GetClipRectFromNormalizedMinMax

cRect2l cMath_GetClipRectFromNormalizedMinMax(const cVector3f &in avMin,
                                              const cVector3f &in avMax,
                                              const cVector2l &in avScreenSize)


Parameters

Returns:

  • cRect2l

cMath_GetClipRectFromSphere

cRect2l cMath_GetClipRectFromSphere(const cVector3f &in avPosition,
                                    float afRadius,
                                    cFrustum@+ apFrustum,
                                    const cVector2l &in avScreenSize,
                                    bool abPositionIsScreenSpace)


Parameters

Returns:

  • cRect2l

cMath_GetCorrectSignOfSpeed

float cMath_GetCorrectSignOfSpeed(float afCurrent,
                                  float afDest,
                                  float afSpeed)


Parameters

  • afCurrent (float) —
  • afDest (float) —
  • afSpeed (float) —

Returns:

  • float

cMath_GetFraction

float cMath_GetFraction(float afVal)


Parameters

  • afVal (float) —

Returns:

  • float

cMath_GetNormalizedClipRectFromBV

bool cMath_GetNormalizedClipRectFromBV(cVector3f &out avDestMin,
                                       cVector3f &out avDestMax,
                                       cBoundingVolume@+ aBV,
                                       cFrustum@+ aFrustum)


Parameters

Returns:

  • bool

cMath_GetPoint3DFromSphericalCoords

cVector3f cMath_GetPoint3DFromSphericalCoords(const cVector3f &in avSphCenter,
                                              float afSphRadius,
                                              const cVector2f &in avSphCoords)


Parameters

Returns:

  • cVector3f

cMath_GetSphericalCoordsFromPoint3D

cVector2f cMath_GetSphericalCoordsFromPoint3D(const cVector3f &in avSphCenter,
                                              const cVector3f &in avPoint)


Parameters

Returns:

  • cVector2f

cMath_GetVectorFromAngle2D

cVector2f cMath_GetVectorFromAngle2D(float afAngle,
                                     float afLength)


Parameters

  • afAngle (float) —
  • afLength (float) —

Returns:

  • cVector2f

cMath_HexToRGB

cColor cMath_HexToRGB(const tString &in asHex)


Parameters

Returns:

  • cColor

cMath_HexWToRGB

cColor cMath_HexWToRGB(const tWString &in asHex)


Parameters

Returns:

  • cColor

cMath_HSBToRGB

cColor cMath_HSBToRGB(const cVector3f &in avHSB)


Parameters

Returns:

  • cColor

cMath_IncreaseTo

float cMath_IncreaseTo(float afX,
                       float afAdd,
                       float afDest)


Parameters

  • afX (float) —
  • afAdd (float) —
  • afDest (float) —

Returns:

  • float

cMath_InterpolateCosine

float cMath_InterpolateCosine(float afA,
                              float afB,
                              float afT)


Parameters

  • afA (float) —
  • afB (float) —
  • afT (float) —

Returns:

  • float

cMath_InterpolateCubic

float cMath_InterpolateCubic(float afX0,
                             float afX1,
                             float afX2,
                             float afX3,
                             float afT)


Parameters

  • afX0 (float) —
  • afX1 (float) —
  • afX2 (float) —
  • afX3 (float) —
  • afT (float) —

Returns:

  • float

cMath_InterpolateHermite

float cMath_InterpolateHermite(float afX0,
                               float afX1,
                               float afX2,
                               float afX3,
                               float afT,
                               float afTension,
                               float afBias)


Parameters

  • afX0 (float) —
  • afX1 (float) —
  • afX2 (float) —
  • afX3 (float) —
  • afT (float) —
  • afTension (float) —
  • afBias (float) —

Returns:

  • float

cMath_InterpolateLinear

float cMath_InterpolateLinear(float afA,
                              float afB,
                              float afT)


Parameters

  • afA (float) —
  • afB (float) —
  • afT (float) —

Returns:

  • float

cMath_InterpolateSigmoid

float cMath_InterpolateSigmoid(float afA,
                               float afB,
                               float afT)


Parameters

  • afA (float) —
  • afB (float) —
  • afT (float) —

Returns:

  • float

cMath_IsPow2

bool cMath_IsPow2(int alX)


Parameters

  • alX (int) —

Returns:

  • bool

cMath_Log

float cMath_Log(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Log2ToInt

int cMath_Log2ToInt(int alX)


Parameters

  • alX (int) —

Returns:

  • int

cMath_MatrixEulerAngleDistance

cVector3f cMath_MatrixEulerAngleDistance(const cMatrixf &in a_mtxA,
                                         const cMatrixf &in a_mtxB)


Parameters

Returns:

  • cVector3f

cMath_MatrixInverse

cMatrixf cMath_MatrixInverse(const cMatrixf &in a_mtxA)


Parameters

Returns:

  • cMatrixf

cMath_MatrixMul

cMatrixf cMath_MatrixMul(const cMatrixf &in a_mtxA,
                         const cMatrixf &in a_mtxB)


Parameters

Returns:

  • cMatrixf

cMath_MatrixMul

cVector3f cMath_MatrixMul(const cMatrixf &in a_mtxA,
                          const cVector3f &in avB)


Parameters

Returns:

  • cVector3f

cMath_MatrixMul3x3

cVector3f cMath_MatrixMul3x3(const cMatrixf &in a_mtxA,
                             const cVector3f &in avB)


Parameters

Returns:

  • cVector3f

cMath_MatrixMulDivideW

cVector3f cMath_MatrixMulDivideW(const cMatrixf &in a_mtxA,
                                 const cVector3f &in avB)


Parameters

Returns:

  • cVector3f

cMath_MatrixMulScalar

cMatrixf cMath_MatrixMulScalar(const cMatrixf &in a_mtxA,
                               float afB)


Parameters

Returns:

  • cMatrixf

cMath_MatrixOrthographicProjection

cMatrixf cMath_MatrixOrthographicProjection(float afNearClipPlane,
                                            float afFarClipPlane,
                                            const cVector2f &in avViewSize)


Parameters

  • afNearClipPlane (float) —
  • afFarClipPlane (float) —
  • avViewSize (cVector2f) —

Returns:

  • cMatrixf

cMath_MatrixPerspectiveProjection

cMatrixf cMath_MatrixPerspectiveProjection(float afNearClipPlane,
                                           float afFarClipPlane,
                                           float afFOV,
                                           float afAspect,
                                           bool abInfFarPlane)


Parameters

  • afNearClipPlane (float) —
  • afFarClipPlane (float) —
  • afFOV (float) —
  • afAspect (float) —
  • abInfFarPlane (bool) —

Returns:

  • cMatrixf

cMath_MatrixPlaneMirror

cMatrixf cMath_MatrixPlaneMirror(const cPlanef &in aPlane)


Parameters

Returns:

  • cMatrixf

cMath_MatrixQuaternion

cMatrixf cMath_MatrixQuaternion(const cQuaternion &in aqRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixRotateX

cMatrixf cMath_MatrixRotateX(float afAngle)


Parameters

  • afAngle (float) —

Returns:

  • cMatrixf

cMath_MatrixRotateXYZ

cMatrixf cMath_MatrixRotateXYZ(const cVector3f &in avRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixRotateXZY

cMatrixf cMath_MatrixRotateXZY(const cVector3f &in avRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixRotateY

cMatrixf cMath_MatrixRotateY(float afAngle)


Parameters

  • afAngle (float) —

Returns:

  • cMatrixf

cMath_MatrixRotateYXZ

cMatrixf cMath_MatrixRotateYXZ(const cVector3f &in avRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixRotateYZX

cMatrixf cMath_MatrixRotateYZX(const cVector3f &in avRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixRotateZ

cMatrixf cMath_MatrixRotateZ(float afAngle)


Parameters

  • afAngle (float) —

Returns:

  • cMatrixf

cMath_MatrixRotateZXY

cMatrixf cMath_MatrixRotateZXY(const cVector3f &in avRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixRotateZYX

cMatrixf cMath_MatrixRotateZYX(const cVector3f &in avRot)


Parameters

Returns:

  • cMatrixf

cMath_MatrixScale

cMatrixf cMath_MatrixScale(const cVector3f &in avScale)


Parameters

Returns:

  • cMatrixf

cMath_MatrixSlerp

cMatrixf cMath_MatrixSlerp(float afT,
                           const cMatrixf &in a_mtxA,
                           const cMatrixf &in a_mtxB,
                           bool abShortestPath)


Parameters

  • afT (float) —
  • a_mtxA (cMatrixf) —
  • a_mtxB (cMatrixf) —
  • abShortestPath (bool) —

Returns:

  • cMatrixf

cMath_MatrixToEulerAngles

cVector3f cMath_MatrixToEulerAngles(const cMatrixf &in a_mtxA)


Parameters

Returns:

  • cVector3f

cMath_MatrixToEulerAnglesMultiSolution

cVector3f cMath_MatrixToEulerAnglesMultiSolution(const cMatrixf &in a_mtxA,
                                                 cVector3f &out avSolution1,
                                                 cVector3f &out avSolution2)


Parameters

Returns:

  • cVector3f

cMath_MatrixTranslate

cMatrixf cMath_MatrixTranslate(const cVector3f &in avTrans)


Parameters

Returns:

  • cMatrixf

cMath_MatrixUnitVectors

cMatrixf cMath_MatrixUnitVectors(const cVector3f &in avRight,
                                 const cVector3f &in avUp,
                                 const cVector3f &in avForward,
                                 const cVector3f &in avTranslate)


Parameters

Returns:

  • cMatrixf

cMath_Max

float cMath_Max(float afX,
                float afY)


Parameters

  • afX (float) —
  • afY (float) —

Returns:

  • float

cMath_Max

int cMath_Max(int alX,
              int alY)


Parameters

  • alX (int) —
  • alY (int) —

Returns:

  • int

cMath_Min

float cMath_Min(float afX,
                float afY)


Parameters

  • afX (float) —
  • afY (float) —

Returns:

  • float

cMath_Min

int cMath_Min(int alX,
              int alY)


Parameters

  • alX (int) —
  • alY (int) —

Returns:

  • int

cMath_Modulus

float cMath_Modulus(float afDividend,
                    float afDivisor)


Parameters

  • afDividend (float) —
  • afDivisor (float) —

Returns:

  • float

cMath_PlaneDot

float cMath_PlaneDot(const cPlanef &in aPlaneA,
                     const cPlanef &in aPlaneB)


Parameters

Returns:

  • float

cMath_PlaneIntersectionPoint

bool cMath_PlaneIntersectionPoint(const cPlanef &in aP1,
                                  const cPlanef &in aP2,
                                  const cPlanef &in aP3,
                                  cVector3f &in avPoint)


Parameters

Returns:

  • bool

cMath_PlaneParallel

bool cMath_PlaneParallel(const cPlanef &in aPlaneA,
                         const cPlanef &in aPlaneB)


Parameters

Returns:

  • bool

cMath_PlaneToPointDist

float cMath_PlaneToPointDist(const cPlanef &in aPlane,
                             const cVector3f &in avVec)


Parameters

Returns:

  • float

cMath_Pow

float cMath_Pow(float afX,
                float afExp)


Parameters

  • afX (float) —
  • afExp (float) —

Returns:

  • float

cMath_Pow2

int cMath_Pow2(int alX)


Parameters

  • alX (int) —

Returns:

  • int

cMath_ProjectionMatrixObliqueNearClipPlane

cMatrixf cMath_ProjectionMatrixObliqueNearClipPlane(const cMatrixf &in a_mtxProjMatrix,
                                                    const cPlanef &in aClipPlane)


Parameters

Returns:

  • cMatrixf

cMath_ProjectVector2D

cVector2f cMath_ProjectVector2D(const cVector2f &in avSrcVec,
                                const cVector2f &in avDestVec)


Parameters

Returns:

  • cVector2f

cMath_QuaternionConjugate

cQuaternion cMath_QuaternionConjugate(const cQuaternion &in aqA)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionDot

float cMath_QuaternionDot(const cQuaternion &in aqA,
                          const cQuaternion &in aqB)


Parameters

Returns:

  • float

cMath_QuaternionEuler

cQuaternion cMath_QuaternionEuler(const cVector3f &in avEuler,
                                  eEulerRotationOrder aOrder)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionInverse

cQuaternion cMath_QuaternionInverse(const cQuaternion &in aqA)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionLerp

cQuaternion cMath_QuaternionLerp(float afT,
                                 const cQuaternion &in aqA,
                                 const cQuaternion &in aqB)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionMatrix

cQuaternion cMath_QuaternionMatrix(const cMatrixf &in a_mtxA)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionMul

cQuaternion cMath_QuaternionMul(const cQuaternion &in aqA,
                                const cQuaternion &in aqB)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionNlerp

cQuaternion cMath_QuaternionNlerp(float afT,
                                  const cQuaternion &in aqA,
                                  const cQuaternion &in aqB)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionNormalize

cQuaternion cMath_QuaternionNormalize(const cQuaternion &in aqA)


Parameters

Returns:

  • cQuaternion

cMath_QuaternionSlerp

cQuaternion cMath_QuaternionSlerp(float afT,
                                  const cQuaternion &in aqA,
                                  const cQuaternion &in aqB,
                                  bool abShortestPath)


Parameters

Returns:

  • cQuaternion

cMath_RandomCircleEdgePoint

cVector2f cMath_RandomCircleEdgePoint(float afRadius)


Parameters

  • afRadius (float) —

Returns:

  • cVector2f

cMath_Randomize

void cMath_Randomize(int alSeed)


Parameters

  • alSeed (int) —

Returns:

  • void

cMath_RandRectColor

cColor cMath_RandRectColor(const cColor &in aMin,
                           const cColor &in aMax)


Parameters

Returns:

  • cColor

cMath_RandRectf

float cMath_RandRectf(float alMin,
                      float alMax)


Parameters

  • alMin (float) —
  • alMax (float) —

Returns:

  • float

cMath_RandRectl

int cMath_RandRectl(int alMin,
                    int alMax)


Parameters

  • alMin (int) —
  • alMax (int) —

Returns:

  • int

cMath_RandRectVector2f

cVector2f cMath_RandRectVector2f(const cVector2f &in avMin,
                                 const cVector2f &in avMax)


Parameters

Returns:

  • cVector2f

cMath_RandRectVector3f

cVector3f cMath_RandRectVector3f(const cVector3f &in avMin,
                                 const cVector3f &in avMax)


Parameters

Returns:

  • cVector3f

cMath_RGBToHex

tString cMath_RGBToHex(const cColor &in aRGB)


Parameters

Returns:

  • tString

cMath_RGBToHexW

tWString cMath_RGBToHexW(const cColor &in aRGB)


Parameters

Returns:

  • tWString

cMath_RGBToHSB

cVector3f cMath_RGBToHSB(const cColor &in aX)


Parameters

Returns:

  • cVector3f

cMath_Round

float cMath_Round(float afVal)


Parameters

  • afVal (float) —

Returns:

  • float

cMath_RoundFloatToDecimals

float cMath_RoundFloatToDecimals(float afVal,
                                 int alPrecision)


Parameters

  • afVal (float) —
  • alPrecision (int) —

Returns:

  • float

cMath_RoundToInt

int cMath_RoundToInt(float afVal)


Parameters

  • afVal (float) —

Returns:

  • int

cMath_RoundToInt

cVector2l cMath_RoundToInt(const cVector2f &in avX)


Parameters

Returns:

  • cVector2l

cMath_RoundToInt

cVector3l cMath_RoundToInt(const cVector3f &in avX)


Parameters

Returns:

  • cVector3l

cMath_SetBitFlag

void cMath_SetBitFlag(int &out alFlagNum,
                      int alBit,
                      bool abSet)


Parameters

  • alFlagNum (int) —
  • alBit (int) —
  • abSet (bool) —

Returns:

  • void

cMath_SigmoidCurve

float cMath_SigmoidCurve(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Sign

float cMath_Sign(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Sign

int cMath_Sign(int alX)


Parameters

  • alX (int) —

Returns:

  • int

cMath_Sin

float cMath_Sin(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Sqrt

float cMath_Sqrt(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_Tan

float cMath_Tan(float afX)


Parameters

  • afX (float) —

Returns:

  • float

cMath_ToDeg

float cMath_ToDeg(float afAngle)


Parameters

  • afAngle (float) —

Returns:

  • float

cMath_ToRad

float cMath_ToRad(float afAngle)


Parameters

  • afAngle (float) —

Returns:

  • float

cMath_TransformPlane

cPlanef cMath_TransformPlane(const cMatrixf &in a_mtxTransform,
                             const cPlanef &in aPlane)


Parameters

Returns:

  • cPlanef

cMath_TurnAngle

float cMath_TurnAngle(float afAngle,
                      float afFinalAngle,
                      float afSpeed,
                      float afMaxAngle)


Parameters

  • afAngle (float) —
  • afFinalAngle (float) —
  • afSpeed (float) —
  • afMaxAngle (float) —

Returns:

  • float

cMath_TurnAngleDeg

float cMath_TurnAngleDeg(float afAngle,
                         float afFinalAngle,
                         float afSpeed)


Parameters

  • afAngle (float) —
  • afFinalAngle (float) —
  • afSpeed (float) —

Returns:

  • float

cMath_TurnAngleRad

float cMath_TurnAngleRad(float afAngle,
                         float afFinalAngle,
                         float afSpeed)


Parameters

  • afAngle (float) —
  • afFinalAngle (float) —
  • afSpeed (float) —

Returns:

  • float

cMath_Vector2Abs

cVector2f cMath_Vector2Abs(const cVector2f &in avVec)


Parameters

Returns:

  • cVector2f

cMath_Vector2CatmullRom

cVector2f cMath_Vector2CatmullRom(const cVector2f &in avP0,
                                  const cVector2f &in avP1,
                                  const cVector2f &in avP2,
                                  const cVector2f &in avP3,
                                  float afFract)


Parameters

Returns:

  • cVector2f

cMath_Vector2Ceil

cVector2f cMath_Vector2Ceil(const cVector2f &in avVec)


Parameters

Returns:

  • cVector2f

cMath_Vector2Dist

float cMath_Vector2Dist(const cVector2f &in avPosA,
                        const cVector2f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistSqr

float cMath_Vector2DistSqr(const cVector2f &in avPosA,
                           const cVector2f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistSqrXY

float cMath_Vector2DistSqrXY(const cVector3f &in avPosA,
                             const cVector3f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistSqrXZ

float cMath_Vector2DistSqrXZ(const cVector3f &in avPosA,
                             const cVector3f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistSqrYZ

float cMath_Vector2DistSqrYZ(const cVector3f &in avPosA,
                             const cVector3f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistXY

float cMath_Vector2DistXY(const cVector3f &in avPosA,
                          const cVector3f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistXZ

float cMath_Vector2DistXZ(const cVector3f &in avPosA,
                          const cVector3f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2DistYZ

float cMath_Vector2DistYZ(const cVector3f &in avPosA,
                          const cVector3f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2Dot

float cMath_Vector2Dot(const cVector2f &in avPosA,
                       const cVector2f &in avPosB)


Parameters

Returns:

  • float

cMath_Vector2Floor

cVector2f cMath_Vector2Floor(const cVector2f &in avVec)


Parameters

Returns:

  • cVector2f

cMath_Vector2IncreaseTo

cVector2f cMath_Vector2IncreaseTo(const cVector2f &in avX,
                                  const cVector2f &in avAdd,
                                  const cVector2f &in avDest)


Parameters

Returns:

  • cVector2f

cMath_Vector2Max

cVector2f cMath_Vector2Max(const cVector2f &in avVecA,
                           const cVector2f &in avVecB)


Parameters

Returns:

  • cVector2f

cMath_Vector2MaxElement

float cMath_Vector2MaxElement(const cVector2f &in avVec)


Parameters

Returns:

  • float

cMath_Vector2Min

cVector2f cMath_Vector2Min(const cVector2f &in avVecA,
                           const cVector2f &in avVecB)


Parameters

Returns:

  • cVector2f

cMath_Vector2MinElement

float cMath_Vector2MinElement(const cVector2f &in avVec)


Parameters

Returns:

  • float

cMath_Vector2Normalize

cVector2f cMath_Vector2Normalize(const cVector2f &in avVec)


Parameters

Returns:

  • cVector2f

cMath_Vector2Rotate

cVector2f cMath_Vector2Rotate(const cVector2f &in avVec,
                              float afAngle)


Parameters

Returns:

  • cVector2f

cMath_Vector2ToDeg

cVector2f cMath_Vector2ToDeg(const cVector2f &in avVec)


Parameters

Returns:

  • cVector2f

cMath_Vector2ToRad

cVector2f cMath_Vector2ToRad(const cVector2f &in avVec)


Parameters

Returns:

  • cVector2f

cMath_Vector3Abs

cVector3f cMath_Vector3Abs(const cVector3f &in avVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3Angle

float cMath_Vector3Angle(const cVector3f &in avVecA,
                         const cVector3f &in avVecB)


Parameters

Returns:

  • float

cMath_Vector3AngleDistance

cVector3f cMath_Vector3AngleDistance(const cVector3f &in avAngles1,
                                     const cVector3f &in avAngles2,
                                     float afMaxAngle)


Parameters

Returns:

  • cVector3f

cMath_Vector3AngleDistanceDeg

cVector3f cMath_Vector3AngleDistanceDeg(const cVector3f &in avAngles1,
                                        const cVector3f &in avAngles2)


Parameters

Returns:

  • cVector3f

cMath_Vector3AngleDistanceRad

cVector3f cMath_Vector3AngleDistanceRad(const cVector3f &in avAngles1,
                                        const cVector3f &in avAngles2)


Parameters

Returns:

  • cVector3f

cMath_Vector3CatmullRom

cVector3f cMath_Vector3CatmullRom(const cVector3f &in avP0,
                                  const cVector3f &in avP1,
                                  const cVector3f &in avP2,
                                  const cVector3f &in avP3,
                                  float afFract)


Parameters

Returns:

  • cVector3f

cMath_Vector3Ceil

cVector3f cMath_Vector3Ceil(const cVector3f &in avVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3ClampLength

cVector3f cMath_Vector3ClampLength(const cVector3f &in avVec,
                                   float afMinLength,
                                   float afMaxLength)


Parameters

  • avVec (cVector3f) —
  • afMinLength (float) —
  • afMaxLength (float) —

Returns:

  • cVector3f

cMath_Vector3ClampToLength

void cMath_Vector3ClampToLength(cVector3f &in avVec,
                                float afMaxLength)


Parameters

  • avVec (cVector3f) —
  • afMaxLength (float) —

Returns:

  • void

cMath_Vector3Cross

cVector3f cMath_Vector3Cross(const cVector3f &in avVecA,
                             const cVector3f &in avVecB)


Parameters

Returns:

  • cVector3f

cMath_Vector3Dist

float cMath_Vector3Dist(const cVector3f &in avStartPos,
                        const cVector3f &in avEndPos)


Parameters

Returns:

  • float

cMath_Vector3DistSqr

float cMath_Vector3DistSqr(const cVector3f &in avStartPos,
                           const cVector3f &in avEndPos)


Parameters

Returns:

  • float

cMath_Vector3Dot

float cMath_Vector3Dot(const cVector3f &in avVecA,
                       const cVector3f &in avVecB)


Parameters

Returns:

  • float

cMath_Vector3Floor

cVector3f cMath_Vector3Floor(const cVector3f &in avVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3IncreaseTo

cVector3f cMath_Vector3IncreaseTo(const cVector3f &in avX,
                                  const cVector3f &in avAdd,
                                  const cVector3f &in avDest)


Parameters

Returns:

  • cVector3f

cMath_Vector3Max

cVector3f cMath_Vector3Max(const cVector3f &in avVecA,
                           const cVector3f &in avVecB)


Parameters

Returns:

  • cVector3f

cMath_Vector3MaxElement

float cMath_Vector3MaxElement(const cVector3f &in avVec)


Parameters

Returns:

  • float

cMath_Vector3MaxLength

cVector3f cMath_Vector3MaxLength(const cVector3f &in avVec,
                                 float afMaxLength)


Parameters

  • avVec (cVector3f) —
  • afMaxLength (float) —

Returns:

  • cVector3f

cMath_Vector3Min

cVector3f cMath_Vector3Min(const cVector3f &in avVecA,
                           const cVector3f &in avVecB)


Parameters

Returns:

  • cVector3f

cMath_Vector3MinElement

float cMath_Vector3MinElement(const cVector3f &in avVec)


Parameters

Returns:

  • float

cMath_Vector3MinLength

cVector3f cMath_Vector3MinLength(const cVector3f &in avVec,
                                 float afMinLength)


Parameters

  • avVec (cVector3f) —
  • afMinLength (float) —

Returns:

  • cVector3f

cMath_Vector3Normalize

cVector3f cMath_Vector3Normalize(const cVector3f &in avVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3OrthonormalizeBasis

void cMath_Vector3OrthonormalizeBasis(const cVector3f &in avSrcRight,
                                      const cVector3f &in avSrcUp,
                                      const cVector3f &in avSrcForward,
                                      cVector3f &out avDstRight,
                                      cVector3f &out avDstUp,
                                      cVector3f &out avDstForward)


Parameters

Returns:

  • void

cMath_Vector3Project

cVector3f cMath_Vector3Project(const cVector3f &in avSrcVec,
                               const cVector3f &in avDestVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3ProjectOnPlane

cVector3f cMath_Vector3ProjectOnPlane(const cVector3f &in avSrcVec,
                                      const cVector3f &in avPlaneNormal)


Parameters

Returns:

  • cVector3f

cMath_Vector3Reflect

cVector3f cMath_Vector3Reflect(const cVector3f &in avVec,
                               const cVector3f &in avNormal)


Parameters

Returns:

  • cVector3f

cMath_Vector3SphereSurfacePoint

cVector3f cMath_Vector3SphereSurfacePoint(const cVector2f &in avSeed,
                                          float afRadius)


Parameters

Returns:

  • cVector3f

cMath_Vector3ToDeg

cVector3f cMath_Vector3ToDeg(const cVector3f &in avVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3ToRad

cVector3f cMath_Vector3ToRad(const cVector3f &in avVec)


Parameters

Returns:

  • cVector3f

cMath_Vector3UnProject

cVector3f cMath_Vector3UnProject(const cVector3f &in avVec,
                                 const cRect2f &in aScreenRect,
                                 const cMatrixf &in a_mtxViewProj)


Parameters

Returns:

  • cVector3f

cMath_Wrap

float cMath_Wrap(float afX,
                 float afMin,
                 float afMax)


Parameters

  • afX (float) —
  • afMin (float) —
  • afMax (float) —

Returns:

  • float