HPL3/SOMA/Scripting/Scripting Api/cMath
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Summary
- 2 Function Detail
- 2.1 cMath_Abs
- 2.2 cMath_Abs
- 2.3 cMath_ACos
- 2.4 cMath_ASin
- 2.5 cMath_ATan
- 2.6 cMath_ATan2
- 2.7 cMath_CheckAABBInside
- 2.8 cMath_CheckAABBIntersection
- 2.9 cMath_CheckAABBLineIntersection
- 2.10 cMath_CheckAABBSphereCollision
- 2.11 cMath_CheckBVIntersection
- 2.12 cMath_CheckPlaneAABBCollision
- 2.13 cMath_CheckPlaneAABBCollision
- 2.14 cMath_CheckPlaneBVCollision
- 2.15 cMath_CheckPlaneLineIntersection
- 2.16 cMath_CheckPlaneSphereCollision
- 2.17 cMath_CheckPointInAABBIntersection
- 2.18 cMath_CheckPointInBVIntersection
- 2.19 cMath_CheckPointInRectIntersection
- 2.20 cMath_CheckPointInSphereIntersection
- 2.21 cMath_CheckRectFit
- 2.22 cMath_CheckRectFit
- 2.23 cMath_CheckRectIntersection
- 2.24 cMath_CheckRectIntersection
- 2.25 cMath_CheckRectIntersection
- 2.26 cMath_CheckRectIntersection
- 2.27 cMath_CheckSphereIntersection
- 2.28 cMath_CheckSphereLineIntersection
- 2.29 cMath_Clamp
- 2.30 cMath_Clamp
- 2.31 cMath_Cos
- 2.32 cMath_Easing
- 2.33 cMath_ExpandAABBMax
- 2.34 cMath_ExpandAABBMin
- 2.35 cMath_FastRandomFloat
- 2.36 cMath_GetAngleDistance
- 2.37 cMath_GetAngleDistanceDeg
- 2.38 cMath_GetAngleDistanceRad
- 2.39 cMath_GetAngleDistanceVector2f
- 2.40 cMath_GetAngleDistanceVector2fDeg
- 2.41 cMath_GetAngleDistanceVector2fRad
- 2.42 cMath_GetAngleDistanceVector3f
- 2.43 cMath_GetAngleDistanceVector3fDeg
- 2.44 cMath_GetAngleDistanceVector3fRad
- 2.45 cMath_GetAngleFromPoints2D
- 2.46 cMath_GetAngleFromPoints3D
- 2.47 cMath_GetAngleFromVector
- 2.48 cMath_GetBit
- 2.49 cMath_GetBitFlag
- 2.50 cMath_GetClipRect
- 2.51 cMath_GetClipRectFromBV
- 2.52 cMath_GetClipRectFromNormalizedMinMax
- 2.53 cMath_GetClipRectFromSphere
- 2.54 cMath_GetCorrectSignOfSpeed
- 2.55 cMath_GetFraction
- 2.56 cMath_GetNormalizedClipRectFromBV
- 2.57 cMath_GetPoint3DFromSphericalCoords
- 2.58 cMath_GetSphericalCoordsFromPoint3D
- 2.59 cMath_GetVectorFromAngle2D
- 2.60 cMath_HexToRGB
- 2.61 cMath_HexWToRGB
- 2.62 cMath_HSBToRGB
- 2.63 cMath_IncreaseTo
- 2.64 cMath_InterpolateCosine
- 2.65 cMath_InterpolateCubic
- 2.66 cMath_InterpolateHermite
- 2.67 cMath_InterpolateLinear
- 2.68 cMath_InterpolateSigmoid
- 2.69 cMath_IsPow2
- 2.70 cMath_Log
- 2.71 cMath_Log2ToInt
- 2.72 cMath_MatrixEulerAngleDistance
- 2.73 cMath_MatrixInverse
- 2.74 cMath_MatrixMul
- 2.75 cMath_MatrixMul
- 2.76 cMath_MatrixMul3x3
- 2.77 cMath_MatrixMulDivideW
- 2.78 cMath_MatrixMulScalar
- 2.79 cMath_MatrixOrthographicProjection
- 2.80 cMath_MatrixPerspectiveProjection
- 2.81 cMath_MatrixPlaneMirror
- 2.82 cMath_MatrixQuaternion
- 2.83 cMath_MatrixRotateX
- 2.84 cMath_MatrixRotateXYZ
- 2.85 cMath_MatrixRotateXZY
- 2.86 cMath_MatrixRotateY
- 2.87 cMath_MatrixRotateYXZ
- 2.88 cMath_MatrixRotateYZX
- 2.89 cMath_MatrixRotateZ
- 2.90 cMath_MatrixRotateZXY
- 2.91 cMath_MatrixRotateZYX
- 2.92 cMath_MatrixScale
- 2.93 cMath_MatrixSlerp
- 2.94 cMath_MatrixToEulerAngles
- 2.95 cMath_MatrixToEulerAnglesMultiSolution
- 2.96 cMath_MatrixTranslate
- 2.97 cMath_MatrixUnitVectors
- 2.98 cMath_Max
- 2.99 cMath_Max
- 2.100 cMath_Min
- 2.101 cMath_Min
- 2.102 cMath_Modulus
- 2.103 cMath_PlaneDot
- 2.104 cMath_PlaneIntersectionPoint
- 2.105 cMath_PlaneParallel
- 2.106 cMath_PlaneToPointDist
- 2.107 cMath_Pow
- 2.108 cMath_Pow2
- 2.109 cMath_ProjectionMatrixObliqueNearClipPlane
- 2.110 cMath_ProjectVector2D
- 2.111 cMath_QuaternionConjugate
- 2.112 cMath_QuaternionDot
- 2.113 cMath_QuaternionEuler
- 2.114 cMath_QuaternionInverse
- 2.115 cMath_QuaternionLerp
- 2.116 cMath_QuaternionMatrix
- 2.117 cMath_QuaternionMul
- 2.118 cMath_QuaternionNlerp
- 2.119 cMath_QuaternionNormalize
- 2.120 cMath_QuaternionSlerp
- 2.121 cMath_RandomCircleEdgePoint
- 2.122 cMath_Randomize
- 2.123 cMath_RandRectColor
- 2.124 cMath_RandRectf
- 2.125 cMath_RandRectl
- 2.126 cMath_RandRectVector2f
- 2.127 cMath_RandRectVector3f
- 2.128 cMath_RGBToHex
- 2.129 cMath_RGBToHexW
- 2.130 cMath_RGBToHSB
- 2.131 cMath_Round
- 2.132 cMath_RoundFloatToDecimals
- 2.133 cMath_RoundToInt
- 2.134 cMath_RoundToInt
- 2.135 cMath_RoundToInt
- 2.136 cMath_SetBitFlag
- 2.137 cMath_SigmoidCurve
- 2.138 cMath_Sign
- 2.139 cMath_Sign
- 2.140 cMath_Sin
- 2.141 cMath_Sqrt
- 2.142 cMath_Tan
- 2.143 cMath_ToDeg
- 2.144 cMath_ToRad
- 2.145 cMath_TransformPlane
- 2.146 cMath_TurnAngle
- 2.147 cMath_TurnAngleDeg
- 2.148 cMath_TurnAngleRad
- 2.149 cMath_Vector2Abs
- 2.150 cMath_Vector2CatmullRom
- 2.151 cMath_Vector2Ceil
- 2.152 cMath_Vector2Dist
- 2.153 cMath_Vector2DistSqr
- 2.154 cMath_Vector2DistSqrXY
- 2.155 cMath_Vector2DistSqrXZ
- 2.156 cMath_Vector2DistSqrYZ
- 2.157 cMath_Vector2DistXY
- 2.158 cMath_Vector2DistXZ
- 2.159 cMath_Vector2DistYZ
- 2.160 cMath_Vector2Dot
- 2.161 cMath_Vector2Floor
- 2.162 cMath_Vector2IncreaseTo
- 2.163 cMath_Vector2Max
- 2.164 cMath_Vector2MaxElement
- 2.165 cMath_Vector2Min
- 2.166 cMath_Vector2MinElement
- 2.167 cMath_Vector2Normalize
- 2.168 cMath_Vector2Rotate
- 2.169 cMath_Vector2ToDeg
- 2.170 cMath_Vector2ToRad
- 2.171 cMath_Vector3Abs
- 2.172 cMath_Vector3Angle
- 2.173 cMath_Vector3AngleDistance
- 2.174 cMath_Vector3AngleDistanceDeg
- 2.175 cMath_Vector3AngleDistanceRad
- 2.176 cMath_Vector3CatmullRom
- 2.177 cMath_Vector3Ceil
- 2.178 cMath_Vector3ClampLength
- 2.179 cMath_Vector3ClampToLength
- 2.180 cMath_Vector3Cross
- 2.181 cMath_Vector3Dist
- 2.182 cMath_Vector3DistSqr
- 2.183 cMath_Vector3Dot
- 2.184 cMath_Vector3Floor
- 2.185 cMath_Vector3IncreaseTo
- 2.186 cMath_Vector3Max
- 2.187 cMath_Vector3MaxElement
- 2.188 cMath_Vector3MaxLength
- 2.189 cMath_Vector3Min
- 2.190 cMath_Vector3MinElement
- 2.191 cMath_Vector3MinLength
- 2.192 cMath_Vector3Normalize
- 2.193 cMath_Vector3OrthonormalizeBasis
- 2.194 cMath_Vector3Project
- 2.195 cMath_Vector3ProjectOnPlane
- 2.196 cMath_Vector3Reflect
- 2.197 cMath_Vector3SphereSurfacePoint
- 2.198 cMath_Vector3ToDeg
- 2.199 cMath_Vector3ToRad
- 2.200 cMath_Vector3UnProject
- 2.201 cMath_Wrap
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
cMath_CheckAABBIntersection
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
- avMin (cVector3f) —
- avMax (cVector3f) —
- avLineStart (cVector3f) —
- avLineEnd (cVector3f) —
- avIntersectionPos (cVector3f) —
- afT (float) —
Returns:
- bool—
cMath_CheckAABBSphereCollision
cMath_CheckBVIntersection
bool cMath_CheckBVIntersection(cBoundingVolume@+ aBV1,
cBoundingVolume@+ aBV2)
Parameters
- aBV1 (cBoundingVolume@+) —
- aBV2 (cBoundingVolume@+) —
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
- aPlane (cPlanef) —
- avMin (cVector3f) —
- avMax (cVector3f) —
- avSphereCenter (cVector3f) —
- afSphereRadius (float) —
Returns:
- bool—
cMath_CheckPlaneAABBCollision
cMath_CheckPlaneBVCollision
bool cMath_CheckPlaneBVCollision(const cPlanef &in aPlane,
cBoundingVolume@+ aBV)
Parameters
- aPlane (cPlanef) —
- aBV (cBoundingVolume@+) —
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
- aPlane (cPlanef) —
- avLineStart (cVector3f) —
- avLineEnd (cVector3f) —
- avIntersectionPos (cVector3f) —
- afT (float) —
Returns:
- bool—
cMath_CheckPlaneSphereCollision
cMath_CheckPointInAABBIntersection
cMath_CheckPointInBVIntersection
bool cMath_CheckPointInBVIntersection(const cVector3f &in avPoint,
cBoundingVolume@+ aBV)
Parameters
- avPoint (cVector3f) —
- aBV (cBoundingVolume@+) —
Returns:
- bool—
cMath_CheckPointInRectIntersection
cMath_CheckPointInSphereIntersection
cMath_CheckRectFit
cMath_CheckRectFit
cMath_CheckRectIntersection
cMath_CheckRectIntersection
cMath_CheckRectIntersection
cMath_CheckRectIntersection
cMath_CheckSphereIntersection
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
- avSpherePos (cVector3f) —
- afSphereRadius (float) —
- avLineStart (cVector3f) —
- avLineEnd (cVector3f) —
- afT1 (float) —
- afIntersection1 (cVector3f) —
- afT2 (float) —
- avIntersection2 (cVector3f) —
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
cMath_ExpandAABBMin
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
cMath_GetAngleDistanceVector2fDeg
cMath_GetAngleDistanceVector2fRad
cMath_GetAngleDistanceVector3f
cMath_GetAngleDistanceVector3fDeg
cMath_GetAngleDistanceVector3fRad
cMath_GetAngleFromPoints2D
cMath_GetAngleFromPoints3D
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
cMath_GetClipRectFromBV
void cMath_GetClipRectFromBV(cRect2l &out aDestRect,
cBoundingVolume@+ aBV,
cFrustum@+ apFrustum,
const cVector2l &in avScreenSize)
Parameters
- aDestRect (cRect2l) —
- aBV (cBoundingVolume@+) —
- apFrustum (cFrustum@+) —
- avScreenSize (cVector2l) —
Returns:
- void
cMath_GetClipRectFromNormalizedMinMax
cMath_GetClipRectFromSphere
cRect2l cMath_GetClipRectFromSphere(const cVector3f &in avPosition,
float afRadius,
cFrustum@+ apFrustum,
const cVector2l &in avScreenSize,
bool abPositionIsScreenSpace)
Parameters
- avPosition (cVector3f) —
- afRadius (float) —
- apFrustum (cFrustum@+) —
- avScreenSize (cVector2l) —
- abPositionIsScreenSpace (bool) —
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
- avDestMin (cVector3f) —
- avDestMax (cVector3f) —
- aBV (cBoundingVolume@+) —
- aFrustum (cFrustum@+) —
Returns:
- bool—
cMath_GetPoint3DFromSphericalCoords
cMath_GetSphericalCoordsFromPoint3D
cMath_GetVectorFromAngle2D
cVector2f cMath_GetVectorFromAngle2D(float afAngle,
float afLength)
Parameters
- afAngle (float) —
- afLength (float) —
Returns:
- cVector2f—
cMath_HexToRGB
cMath_HexWToRGB
cMath_HSBToRGB
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
cMath_MatrixInverse
cMatrixf cMath_MatrixInverse(const cMatrixf &in a_mtxA)
Parameters
- a_mtxA (cMatrixf) —
Returns:
- cMatrixf—
cMath_MatrixMul
cMath_MatrixMul
cMath_MatrixMul3x3
cMath_MatrixMulDivideW
cMath_MatrixMulScalar
cMatrixf cMath_MatrixMulScalar(const cMatrixf &in a_mtxA,
float afB)
Parameters
- a_mtxA (cMatrixf) —
- afB (float) —
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
- aPlane (cPlanef) —
Returns:
- cMatrixf—
cMath_MatrixQuaternion
cMatrixf cMath_MatrixQuaternion(const cQuaternion &in aqRot)
Parameters
- aqRot (cQuaternion) —
Returns:
- cMatrixf—
cMath_MatrixRotateX
cMatrixf cMath_MatrixRotateX(float afAngle)
Parameters
- afAngle (float) —
Returns:
- cMatrixf—
cMath_MatrixRotateXYZ
cMatrixf cMath_MatrixRotateXYZ(const cVector3f &in avRot)
Parameters
- avRot (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixRotateXZY
cMatrixf cMath_MatrixRotateXZY(const cVector3f &in avRot)
Parameters
- avRot (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixRotateY
cMatrixf cMath_MatrixRotateY(float afAngle)
Parameters
- afAngle (float) —
Returns:
- cMatrixf—
cMath_MatrixRotateYXZ
cMatrixf cMath_MatrixRotateYXZ(const cVector3f &in avRot)
Parameters
- avRot (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixRotateYZX
cMatrixf cMath_MatrixRotateYZX(const cVector3f &in avRot)
Parameters
- avRot (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixRotateZ
cMatrixf cMath_MatrixRotateZ(float afAngle)
Parameters
- afAngle (float) —
Returns:
- cMatrixf—
cMath_MatrixRotateZXY
cMatrixf cMath_MatrixRotateZXY(const cVector3f &in avRot)
Parameters
- avRot (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixRotateZYX
cMatrixf cMath_MatrixRotateZYX(const cVector3f &in avRot)
Parameters
- avRot (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixScale
cMatrixf cMath_MatrixScale(const cVector3f &in avScale)
Parameters
- avScale (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixSlerp
cMath_MatrixToEulerAngles
cVector3f cMath_MatrixToEulerAngles(const cMatrixf &in a_mtxA)
Parameters
- a_mtxA (cMatrixf) —
Returns:
- cVector3f—
cMath_MatrixToEulerAnglesMultiSolution
cMath_MatrixTranslate
cMatrixf cMath_MatrixTranslate(const cVector3f &in avTrans)
Parameters
- avTrans (cVector3f) —
Returns:
- cMatrixf—
cMath_MatrixUnitVectors
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
cMath_PlaneIntersectionPoint
cMath_PlaneParallel
cMath_PlaneToPointDist
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
cMath_ProjectVector2D
cMath_QuaternionConjugate
cQuaternion cMath_QuaternionConjugate(const cQuaternion &in aqA)
Parameters
- aqA (cQuaternion) —
Returns:
- cQuaternion—
cMath_QuaternionDot
float cMath_QuaternionDot(const cQuaternion &in aqA,
const cQuaternion &in aqB)
Parameters
- aqA (cQuaternion) —
- aqB (cQuaternion) —
Returns:
- float—
cMath_QuaternionEuler
cQuaternion cMath_QuaternionEuler(const cVector3f &in avEuler,
eEulerRotationOrder aOrder)
Parameters
- avEuler (cVector3f) —
- aOrder (eEulerRotationOrder) —
Returns:
- cQuaternion—
cMath_QuaternionInverse
cQuaternion cMath_QuaternionInverse(const cQuaternion &in aqA)
Parameters
- aqA (cQuaternion) —
Returns:
- cQuaternion—
cMath_QuaternionLerp
cQuaternion cMath_QuaternionLerp(float afT,
const cQuaternion &in aqA,
const cQuaternion &in aqB)
Parameters
- afT (float) —
- aqA (cQuaternion) —
- aqB (cQuaternion) —
Returns:
- cQuaternion—
cMath_QuaternionMatrix
cQuaternion cMath_QuaternionMatrix(const cMatrixf &in a_mtxA)
Parameters
- a_mtxA (cMatrixf) —
Returns:
- cQuaternion—
cMath_QuaternionMul
cQuaternion cMath_QuaternionMul(const cQuaternion &in aqA,
const cQuaternion &in aqB)
Parameters
- aqA (cQuaternion) —
- aqB (cQuaternion) —
Returns:
- cQuaternion—
cMath_QuaternionNlerp
cQuaternion cMath_QuaternionNlerp(float afT,
const cQuaternion &in aqA,
const cQuaternion &in aqB)
Parameters
- afT (float) —
- aqA (cQuaternion) —
- aqB (cQuaternion) —
Returns:
- cQuaternion—
cMath_QuaternionNormalize
cQuaternion cMath_QuaternionNormalize(const cQuaternion &in aqA)
Parameters
- aqA (cQuaternion) —
Returns:
- cQuaternion—
cMath_QuaternionSlerp
cQuaternion cMath_QuaternionSlerp(float afT,
const cQuaternion &in aqA,
const cQuaternion &in aqB,
bool abShortestPath)
Parameters
- afT (float) —
- aqA (cQuaternion) —
- aqB (cQuaternion) —
- abShortestPath (bool) —
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
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
cMath_RandRectVector3f
cMath_RGBToHex
cMath_RGBToHexW
cMath_RGBToHSB
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
- avX (cVector2f) —
Returns:
- cVector2l—
cMath_RoundToInt
cVector3l cMath_RoundToInt(const cVector3f &in avX)
Parameters
- avX (cVector3f) —
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
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
- avVec (cVector2f) —
Returns:
- cVector2f—
cMath_Vector2CatmullRom
cMath_Vector2Ceil
cVector2f cMath_Vector2Ceil(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- cVector2f—
cMath_Vector2Dist
cMath_Vector2DistSqr
cMath_Vector2DistSqrXY
cMath_Vector2DistSqrXZ
cMath_Vector2DistSqrYZ
cMath_Vector2DistXY
cMath_Vector2DistXZ
cMath_Vector2DistYZ
cMath_Vector2Dot
cMath_Vector2Floor
cVector2f cMath_Vector2Floor(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- cVector2f—
cMath_Vector2IncreaseTo
cMath_Vector2Max
cMath_Vector2MaxElement
float cMath_Vector2MaxElement(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- float—
cMath_Vector2Min
cMath_Vector2MinElement
float cMath_Vector2MinElement(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- float—
cMath_Vector2Normalize
cVector2f cMath_Vector2Normalize(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- cVector2f—
cMath_Vector2Rotate
cVector2f cMath_Vector2Rotate(const cVector2f &in avVec,
float afAngle)
Parameters
- avVec (cVector2f) —
- afAngle (float) —
Returns:
- cVector2f—
cMath_Vector2ToDeg
cVector2f cMath_Vector2ToDeg(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- cVector2f—
cMath_Vector2ToRad
cVector2f cMath_Vector2ToRad(const cVector2f &in avVec)
Parameters
- avVec (cVector2f) —
Returns:
- cVector2f—
cMath_Vector3Abs
cVector3f cMath_Vector3Abs(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
Returns:
- cVector3f—
cMath_Vector3Angle
cMath_Vector3AngleDistance
cMath_Vector3AngleDistanceDeg
cMath_Vector3AngleDistanceRad
cMath_Vector3CatmullRom
cMath_Vector3Ceil
cVector3f cMath_Vector3Ceil(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
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
cMath_Vector3Dist
cMath_Vector3DistSqr
cMath_Vector3Dot
cMath_Vector3Floor
cVector3f cMath_Vector3Floor(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
Returns:
- cVector3f—
cMath_Vector3IncreaseTo
cMath_Vector3Max
cMath_Vector3MaxElement
float cMath_Vector3MaxElement(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
Returns:
- float—
cMath_Vector3MaxLength
cVector3f cMath_Vector3MaxLength(const cVector3f &in avVec,
float afMaxLength)
Parameters
- avVec (cVector3f) —
- afMaxLength (float) —
Returns:
- cVector3f—
cMath_Vector3Min
cMath_Vector3MinElement
float cMath_Vector3MinElement(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
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
- avVec (cVector3f) —
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
- avSrcRight (cVector3f) —
- avSrcUp (cVector3f) —
- avSrcForward (cVector3f) —
- avDstRight (cVector3f) —
- avDstUp (cVector3f) —
- avDstForward (cVector3f) —
Returns:
- void
cMath_Vector3Project
cMath_Vector3ProjectOnPlane
cMath_Vector3Reflect
cMath_Vector3SphereSurfacePoint
cVector3f cMath_Vector3SphereSurfacePoint(const cVector2f &in avSeed,
float afRadius)
Parameters
- avSeed (cVector2f) —
- afRadius (float) —
Returns:
- cVector3f—
cMath_Vector3ToDeg
cVector3f cMath_Vector3ToDeg(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
Returns:
- cVector3f—
cMath_Vector3ToRad
cVector3f cMath_Vector3ToRad(const cVector3f &in avVec)
Parameters
- avVec (cVector3f) —
Returns:
- cVector3f—
cMath_Vector3UnProject
cMath_Wrap
float cMath_Wrap(float afX,
float afMin,
float afMax)
Parameters
- afX (float) —
- afMin (float) —
- afMax (float) —
Returns:
- float—