8#define PI (3.141592653589793f)
9#define DegreeToRadian(degree) ((degree) * (PI / 180.0f))
10#define RadianToDegree(radian) ((radian) * (180.0f / PI))
19RageVec2RotateFromOrigin(
RageVector2* pOut,
float degrees);
36VectorFloatNormalize(std::vector<float>& v);
60RageMatrixTranslation(
struct RageMatrix* pOut,
float x,
float y,
float z);
62RageMatrixScaling(
struct RageMatrix* pOut,
float x,
float y,
float z);
64RageMatrixSkewX(
struct RageMatrix* pOut,
float fAmount);
66RageMatrixSkewY(
struct RageMatrix* pOut,
float fAmount);
78RageMatrixRotationX(
struct RageMatrix* pOut,
float fTheta);
80RageMatrixRotationY(
struct RageMatrix* pOut,
float fTheta);
82RageMatrixRotationZ(
struct RageMatrix* pOut,
float fTheta);
84RageMatrixRotationXYZ(
struct RageMatrix* pOut,
float rX,
float rY,
float rZ);
111RageLookAt(
float eyex,
126RageFastSin(
float x) ->
const float;
128RageFastCos(
float x) ->
const float;
133 void SetFromBezier(
float fC1,
float fC2,
float fC3,
float fC4);
134 void GetBezier(
float& fC1,
float& fC2,
float& fC3,
float& fC4)
const;
136 void SetFromCubic(
float fX1,
float fX2,
float fX3,
float fX4);
138 [[nodiscard]]
auto Evaluate(
float fT)
const -> float;
139 [[nodiscard]]
auto GetSlope(
float fT)
const -> float;
142 [[nodiscard]]
auto GetBezierStart()
const ->
float {
return m_fD; }
143 [[nodiscard]]
auto GetBezierEnd()
const ->
float
145 return m_fA + m_fB + m_fC + m_fD;
148 void PushSelf(lua_State* L);
151 float m_fA, m_fB, m_fC, m_fD;
157 void SetFromBezier(
float fC1X,
166 void Evaluate(
float fT,
float* pX,
float* pY)
const;
167 [[nodiscard]]
auto EvaluateYFromX(
float fX)
const -> float;
171 void PushSelf(lua_State* L);
Definition RageMath.h:155
Definition RageMath.h:131
Definition RageTypes.h:599
Definition RageTypes.h:101
Definition RageTypes.h:172
Definition RageTypes.h:249