You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Get world scale by distance to origin on one axis
This commit is contained in:
@@ -12,10 +12,13 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
// Variables for a spline curve animation (used for the flight path in the grand star cutscene)
|
||||
Vec4s *gSplineKeyframe;
|
||||
float gSplineKeyframeFraction;
|
||||
int gSplineState;
|
||||
/// Returns the lowest of three values.
|
||||
s32 min_3i(s32 a0, s32 a1, s32 a2) { if (a1 < a0) a0 = a1; if (a2 < a0) a0 = a2; return a0; }
|
||||
f32 min_3f(f32 a0, f32 a1, f32 a2) { if (a1 < a0) a0 = a1; if (a2 < a0) a0 = a2; return a0; }
|
||||
|
||||
/// Returns the highest of three values.
|
||||
s32 max_3i(s32 a0, s32 a1, s32 a2) { if (a1 > a0) a0 = a1; if (a2 > a0) a0 = a2; return a0; }
|
||||
f32 max_3f(f32 a0, f32 a1, f32 a2) { if (a1 > a0) a0 = a1; if (a2 > a0) a0 = a2; return a0; }
|
||||
|
||||
/// Copy vector 'src' to 'dest'
|
||||
void vec3f_copy(Vec3f dest, Vec3f src) {
|
||||
@@ -874,6 +877,11 @@ f32 atan2f(f32 y, f32 x) {
|
||||
return ((f32) atan2s(y, x) * M_PI / 0x8000);
|
||||
}
|
||||
|
||||
// Variables for a spline curve animation (used for the flight path in the grand star cutscene)
|
||||
Vec4s *gSplineKeyframe;
|
||||
float gSplineKeyframeFraction;
|
||||
int gSplineState;
|
||||
|
||||
#define CURVE_BEGIN_1 0x1
|
||||
#define CURVE_BEGIN_2 0x2
|
||||
#define CURVE_MIDDLE 0x3
|
||||
|
||||
Reference in New Issue
Block a user