Vector improvements (#67)

* clean up math.h and attempt to improve existing vector maths

* fix broken matches and match new stuff
This commit is contained in:
Yanis
2026-05-24 01:33:53 +02:00
committed by GitHub
parent 90203403dd
commit 0698c28bb0
42 changed files with 536 additions and 448 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include "math.hpp"
#include "types.h"
#include <nitro/math.h>
// incomplete
class PlayerActor {
+1 -1
View File
@@ -7,7 +7,7 @@
#include "Unknown/Common.hpp"
#include "Unknown/UnkStruct_027e0ce0.hpp"
#include "Unknown/UnkStruct_ov000_0208f820.hpp"
#include <nitro/math.h>
#include "math.hpp"
enum GIModel_ {
GIModel_None = 0,
+1 -1
View File
@@ -6,7 +6,7 @@
#include "Unknown/UnkStruct_027e09a4.hpp"
#include "Unknown/UnkStruct_ov000_0208f820.hpp"
#include <nitro/math.h>
#include "math.hpp"
class PlayerSceneChange : public UnkStruct_ov000_0208f820 {
public:
+3 -3
View File
@@ -1,7 +1,7 @@
#pragma once
#include "math.hpp"
#include "types.h"
#include <nitro/math.h>
#include <nitro/touch.h>
typedef u16 TouchFlags;
@@ -35,10 +35,10 @@ public:
void IncreaseSpeed(u16 increase);
void UpdateFlags(u16 speed);
void UpdateWithStateFlags(TouchStateFlags *state, u16 speed);
void Update(TouchState *state, u16 speed);
void Update(const TouchState *state, u16 speed);
void func_02014414(u16 speedIncrease, bool shouldIncrease);
void func_02014478(TouchState *state, u16 speed);
static bool func_020143f0();
static void UpdateState(TouchState *state, TouchStateFlags *stateFlags);
static void UpdateState(TouchState *state, const TouchStateFlags *stateFlags);
};