#include <nds/ndstypes.h>
Functions | |
| s16 | acosLerp (s16 par) |
| fixed point arccos | |
| s16 | asinLerp (s16 par) |
| fixed point arcsin | |
| s16 | cosLerp (s16 angle) |
| fixed point cosine | |
| s16 | sinLerp (s16 angle) |
| fixed point sine | |
| s32 | tanLerp (s16 angle) |
| fixed point tangent | |
angle = degreesToAngle(angleInDegrees);
or
angle = angleInDegrees * 32768 / 360;
This unit of measure is sometimes refered to as a binary radian (brad) or binary degree. It allows for more precise representation of angle and faster calculation as the DS has no floating point processor.
| s16 acosLerp | ( | s16 | par | ) |
fixed point arccos
| par | parameter |
| s16 asinLerp | ( | s16 | par | ) |
fixed point arcsin
| par | parameter |
| s16 cosLerp | ( | s16 | angle | ) |
fixed point cosine
| angle | (-32768 to 32767) |
| s16 sinLerp | ( | s16 | angle | ) |
fixed point sine
| angle | (-32768 to 32767) |
| s32 tanLerp | ( | s16 | angle | ) |
fixed point tangent
| angle | (-32768 to 32767) |
1.5.7.1