![]() |
SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
|
#include <shz_trig.h>

Data Fields | |
| float | sin |
| float | cos |
Pair representing the sine and cosine of a given angle.
The SH4 provides a single instruction, FSCA, for retrieving fast approximations of both the sine and cosine of a given angle. As such, when you need both values, it's most efficient to grab them both at once as a pair using this structure than it is to retrieve them separately.
Definition at line 55 of file shz_trig.h.
| float shz_sincos_t::sin |
sinf() approximation for the angle
Definition at line 56 of file shz_trig.h.
| float shz_sincos_t::cos |
cosf() approximation for the angle
Definition at line 57 of file shz_trig.h.