mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-10 02:35:17 -04:00
first round of constants cleanup (#3021)
* first round of constants cleanup * move m_PI_D definition * remove compatibility comment * add future version of angle subtracting with/without cast * whitespace change to run builds again
This commit is contained in:
@@ -151,7 +151,10 @@ public:
|
||||
void setAwayFromAxisSpeed(f32 i_speed) { mAwayFromAxisSpeed = i_speed; }
|
||||
void setSpread(f32 i_spread) { mSpread = i_spread; }
|
||||
void setLocalTranslation(const JGeometry::TVec3<f32>& i_trans) { mLocalTrs.set(i_trans); }
|
||||
void setLocalRotation(const JGeometry::TVec3<s16>& i_rot) { mLocalRot.set(i_rot.x * 0.005493248f, i_rot.y * 0.005493248f, i_rot.z * 0.005493248f); }
|
||||
void setLocalRotation(const JGeometry::TVec3<s16>& i_rot) {
|
||||
mLocalRot.set(i_rot.x * (360.0f / 0xffff), i_rot.y * (360.0f / 0xffff),
|
||||
i_rot.z * (360.0f / 0xffff));
|
||||
}
|
||||
void setRateStep(u8 i_step) { mRateStep = i_step; }
|
||||
|
||||
void setGlobalParticleHeightScale(f32 height) {
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "dolphin/mtx.h"
|
||||
#include <math>
|
||||
|
||||
#define m_PI_D 3.141592653589793
|
||||
|
||||
namespace JStudio {
|
||||
namespace math {
|
||||
void getRotation_xyz(MtxP, f32, f32, f32);
|
||||
|
||||
Reference in New Issue
Block a user