2#ifndef PCDOGS_MATH_FUNCTIONS_H
3#define PCDOGS_MATH_FUNCTIONS_H
54int32_t
Math_EaseInOut(int32_t t_q12, int32_t ease_in_q12, int32_t ease_out_q12);
void Math_BuildMatrixRotationY(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle)
int32_t Math_SinQ14(int32_t angle)
int32_t Math_SqrtFP14(uint32_t value)
void Math_BuildRotationFromVectors(struct Math_Vec3I16 *from_vec, struct Math_Vec3I16 *to_vec, struct Math_Matrix3x3I16 *out_matrix)
int32_t Math_CalculateTriangleHeight(int32_t local_xq6, int32_t local_zq6, struct Collision_Vertex const *tri_a, struct Collision_Vertex const *tri_b, struct Collision_Vertex const *tri_c)
int32_t Math_SqrtFP12(uint32_t value)
int32_t Math_EaseInOut(int32_t t_q12, int32_t ease_in_q12, int32_t ease_out_q12)
uint16_t Math_ClampAngleDelta(int16_t target_angle, int16_t current_angle, int16_t max_delta)
void Math_BuildQuaternionFromMatrix(struct Math_Matrix3x3I16 *matrix, struct Math_QuaternionI16 *output_quat)
int32_t Math_AcosRatioFP12(int32_t numerator, int32_t denominator)
void Math_BuildMatrixRotationX(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle)
void Math_BuildRotationMatrixFromXYSinCos(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int16_t sin_x_q12, int16_t cos_x_q12, int16_t sin_y_q12, int16_t cos_y_q12, int32_t angle_z)
void Math_BuildMatrixRotationZ(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle)
void Math_MulMat3x3Q12(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *right_factor, struct Math_Matrix3x3I16 const *left_factor)
uint32_t Math_SetRandomSeed(uint32_t seed)
struct Math_Vec3F * Math_CalculateFaceNormal(struct Math_Vec3F *out_normal, struct Math_Vec3F const *point0, struct Math_Vec3F const *point1, struct Math_Vec3F const *point2)
int32_t Math_ApproxDistance3DWeighted(int32_t dx, int32_t dy, int32_t dz)
int32_t Math_EaseInOutQuadraticQ12(int32_t input_q12)
int16_t Math_CalculateAtan2FP12(int32_t y, int32_t x)
uint32_t Math_GenerateRandom(uint32_t range)
void Math_BuildMatrixRotationXY(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle_x, int32_t angle_y)
int32_t Math_AsinRatioFP12(int32_t numerator, int32_t denominator)
void Math_BuildRotationMatrix(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle_x, int32_t angle_y, int32_t angle_z)
int32_t Math_CalculateAtan2Fast(int32_t y, int32_t x)