Skip to content

Commit

Permalink
Some EGG::Quatf matches
Browse files Browse the repository at this point in the history
  • Loading branch information
em-eight committed Feb 3, 2024
1 parent 167ab7d commit e3895c9
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 389 deletions.
8 changes: 4 additions & 4 deletions pack/symbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9005,10 +9005,10 @@ global:
0x8022f85c: 'frsqrt__Q23EGG5MathfFf'
0x8022f860: 'sin__Q23EGG5MathfFf'
0x8022f86c: 'cos__Q23EGG5MathfFf'
0x8022f878: 'unk_8022f878'
0x8022f89c: 'unk_8022f89c'
0x8022f8c0: 'unk_8022f8c0'
0x8022f8e4: 'atan2_Q23EGG5MathfFf'
0x8022f878: 'tan__Q23EGG5MathfFf'
0x8022f89c: 'asin__Q23EGG5MathfFf'
0x8022f8c0: 'acos__Q23EGG5MathfFf'
0x8022f8e4: 'atan2_Q23EGG5MathfFff'
0x8022f90c: 'inverseToC__Q23EGG9Matrix34fCFRQ23EGG9Matrix34f'
0x8022fabc: 'inverseTo__Q23EGG9Matrix34fCFRQ23EGG9Matrix34f'
0x8022fac0: 'inverseTransposeTo__Q23EGG9Matrix34fCFRQ23EGG9Matrix34f'
Expand Down
6 changes: 6 additions & 0 deletions source/egg/math/eggMath.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ namespace Mathf {
float sqrt(float);
float frsqrt(float);

inline f32 abs(f32 t) { return t > (f32)0 ? t : -t;}

float sin(float);
float cos(float);
float tan(float);
float asin(float);
float acos(float);
float atan2(float, float);

inline bool isNonNegative(f32 x) {return x > -FLT_MIN;}
} // namespace Mathf
Expand Down
Loading

0 comments on commit e3895c9

Please sign in to comment.