diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2026-01-07 09:53:53 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-07 19:53:53 +0200 |
| commit | 2b52bc59d00bc83abce50c026447780d6c8ad943 (patch) | |
| tree | c4689d5bef172f049c78f11b031eefd0f6d50049 /include | |
| parent | a313c26f0bc6d11bddc2b24c4367dc1040f604a4 (diff) | |
JMath debug (#3023)
Diffstat (limited to 'include')
| -rw-r--r-- | include/JSystem/JMath/JMATrigonometric.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/JSystem/JMath/JMATrigonometric.h b/include/JSystem/JMath/JMATrigonometric.h index 8b15f6624e..43839ae3f4 100644 --- a/include/JSystem/JMath/JMATrigonometric.h +++ b/include/JSystem/JMath/JMATrigonometric.h @@ -64,8 +64,9 @@ struct TSinCosTable { * @ingroup jsystem-jmath * */ +template<int N, typename T> struct TAtanTable { - f32 table[1025]; + T table[N + 1]; u8 pad[0x1C]; }; @@ -75,7 +76,7 @@ struct TAtanTable { */ template<int N, typename T> struct TAsinAcosTable { - T table[1025]; + T table[N + 1]; u8 pad[0x1C]; T acos_(T x) const { @@ -96,7 +97,7 @@ struct TAsinAcosTable { }; extern TSinCosTable<13, f32> sincosTable_; -extern TAtanTable atanTable_; +extern TAtanTable<1024, f32> atanTable_; extern TAsinAcosTable<1024, f32> asinAcosTable_; inline f32 acosDegree(f32 x) { |
