pokeplatinum/include/fx_util.h
Fexty 0263b008b5
Some checks failed
build / build (push) Has been cancelled
Document Particle System (#490)
* Remove decl files and rename main ParticleSystem struct

* Document particle system new/init

* Document generic particle system functions

* Document particle system allocation functions

* Document remaining particle system getters and setters

* Particle system cleanup

* Rename particle system files

* Format files

* PR feedback
2025-05-04 11:55:13 -07:00

19 lines
706 B
C

#ifndef POKEPLATINUM_FX_UTIL_H
#define POKEPLATINUM_FX_UTIL_H
#include <nitro/fx/fx.h>
// clang-format off
#define VEC_FX32(__x, __y, __z) (VecFx32){ FX32_CONST(__x), FX32_CONST(__y), FX32_CONST(__z) }
#define VEC_FX16(__x, __y, __z) (VecFx16){ FX16_CONST(__x), FX16_CONST(__y), FX16_CONST(__z) }
// clang-format on
fx32 FX_Min(fx32 a, fx32 b);
fx32 FX_Max(fx32 a, fx32 b);
fx32 VEC_AngleBetween(const VecFx32 *param0, const VecFx32 *param1);
void MTX_Rot33Vec(MtxFx33 *outRot, VecFx32 *angles);
void MTX_Rot33Angles(MtxFx33 *outRot, u16 alpha, u16 beta, u16 gamma);
void CalcLinearFov(u16 angularFov, fx32 distance, fx32 aspectRatio, fx32 *outWidth, fx32 *outHeight);
#endif // POKEPLATINUM_FX_UTIL_H