Alchemy
Loading...
Searching...
No Matches

math_table.h

Go to the documentation of this file.
1#ifndef ALCHEMY_UNIT_RUNTIME_MATH_TABLE_H
2#define ALCHEMY_UNIT_RUNTIME_MATH_TABLE_H
3
4#include "types.h"
5
6extern const u16 gMath_SinQuarter[256];
7extern const u16 gMath_TwoPiSteps[8];
8extern const s32 gMath_QuadrantSin[4];
9extern const u16 gMath_TanTable[258];
10
11#endif
const s32 gMath_QuadrantSin[4]
The sine at 0, 90, 180 and 270 degrees, in Q16.
Definition math_table.c:48
const u16 gMath_TanTable[258]
Tangents scaled by 256: index i is tan(i * 45 / 128 degrees), so index 128 is tan(45 degrees).
Definition math_table.c:55
const u16 gMath_TwoPiSteps[8]
floor(i * 2π)
Definition math_table.c:43
const u16 gMath_SinQuarter[256]
A quarter-wave sine table, scaled by 65536.
Definition math_table.c:7
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
unsigned short u16
Definition types.h:13