mirror of
https://github.com/zeldaret/ss
synced 2026-08-15 04:50:05 -04:00
change everything to use a common types file
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include <c/c_math.h>
|
||||
#include <m/m_math.h>
|
||||
#include <nw4r/math/arithmetic.h>
|
||||
|
||||
void mMtx_c::toRot(mAng3_c &out) const {
|
||||
f32 t1 = 0.0f;
|
||||
f32 t0 = m[0][2] + m[2][2];
|
||||
if (t0 > 0.0f) {
|
||||
t1 = t0 * nw4r::math::FrSqrt(t0);
|
||||
}
|
||||
s16 anglex = cM::atan2s(-m[1][2], t1);
|
||||
}
|
||||
Reference in New Issue
Block a user