SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
Loading...
Searching...
No Matches
shz_sincos_t Struct Reference

#include <shz_trig.h>

Inheritance diagram for shz_sincos_t:

Data Fields

float sin
 
float cos
 

Detailed Description

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.

See also
shz_sincosf(), shz_sincosf_deg()

Definition at line 55 of file shz_trig.h.

Field Documentation

◆ sin

float shz_sincos_t::sin

sinf() approximation for the angle

Definition at line 56 of file shz_trig.h.

◆ cos

float shz_sincos_t::cos

cosf() approximation for the angle

Definition at line 57 of file shz_trig.h.


The documentation for this struct was generated from the following file: