|
102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
|
#include "pcdogs/math/constants.h"#include "pcdogs/collision/types.h"#include "pcdogs/image/globals.h"#include "pcdogs/math/functions.h"#include "pcdogs/math/types.h"#include "pcdogs/runtime/constants.h"#include "pcdogs/runtime/functions.h"#include <math.h>Go to the source code of this file.
Functions | |
| static int32_t | divide_q12 (int32_t numerator, int32_t divisor) |
| int32_t | Math_EaseInOutQuadraticQ12 (int32_t input_q12) |
| 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_SqrtFP12 (uint32_t value) |
| int32_t | Math_SqrtFP14 (uint32_t value) |
| 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) |
| uint16_t | Math_ClampAngleDelta (int16_t target_angle, int16_t current_angle, int16_t max_delta) |
| uint32_t | Math_GenerateRandom (uint32_t range) |
| uint32_t | Math_SetRandomSeed (uint32_t seed) |
| int32_t | Math_SinQ14 (int32_t angle) |
| int32_t | Math_CalculateAtan2Fast (int32_t y, int32_t x) |
| static uint32_t | angle_ratio_index (int32_t minor, int32_t major) |
| int16_t | Math_CalculateAtan2FP12 (int32_t y, int32_t x) |
| int32_t | Math_AsinRatioFP12 (int32_t numerator, int32_t denominator) |
| int32_t | Math_AcosRatioFP12 (int32_t numerator, int32_t denominator) |
| int32_t | Math_EaseInOut (int32_t t_q12, int32_t ease_in_q12, int32_t ease_out_q12) |
|
static |
Definition at line 315 of file fixed_point.c.
|
static |
Definition at line 12 of file fixed_point.c.
| int32_t Math_AcosRatioFP12 | ( | int32_t | numerator, |
| int32_t | denominator ) |
Definition at line 389 of file fixed_point.c.
| int32_t Math_ApproxDistance3DWeighted | ( | int32_t | dx, |
| int32_t | dy, | ||
| int32_t | dz ) |
Definition at line 59 of file fixed_point.c.
| int32_t Math_AsinRatioFP12 | ( | int32_t | numerator, |
| int32_t | denominator ) |
Definition at line 355 of file fixed_point.c.
| int32_t Math_CalculateAtan2Fast | ( | int32_t | y, |
| int32_t | x ) |
Definition at line 274 of file fixed_point.c.
| int16_t Math_CalculateAtan2FP12 | ( | int32_t | y, |
| int32_t | x ) |
Definition at line 323 of file fixed_point.c.
| 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 ) |
Definition at line 35 of file fixed_point.c.
| 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 ) |
Definition at line 158 of file fixed_point.c.
| uint16_t Math_ClampAngleDelta | ( | int16_t | target_angle, |
| int16_t | current_angle, | ||
| int16_t | max_delta ) |
Definition at line 203 of file fixed_point.c.
| int32_t Math_EaseInOut | ( | int32_t | t_q12, |
| int32_t | ease_in_q12, | ||
| int32_t | ease_out_q12 ) |
Definition at line 405 of file fixed_point.c.
| int32_t Math_EaseInOutQuadraticQ12 | ( | int32_t | input_q12 | ) |
Definition at line 24 of file fixed_point.c.
| uint32_t Math_GenerateRandom | ( | uint32_t | range | ) |
Definition at line 224 of file fixed_point.c.
| uint32_t Math_SetRandomSeed | ( | uint32_t | seed | ) |
Definition at line 243 of file fixed_point.c.
| int32_t Math_SinQ14 | ( | int32_t | angle | ) |
Definition at line 258 of file fixed_point.c.
| int32_t Math_SqrtFP12 | ( | uint32_t | value | ) |
Definition at line 112 of file fixed_point.c.
| int32_t Math_SqrtFP14 | ( | uint32_t | value | ) |
Definition at line 135 of file fixed_point.c.