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


Public Member Functions | |
| sincos (shz_sincos_t val) noexcept | |
| float | sinf () const noexcept |
| float | cosf () const noexcept |
| float | tanf () const noexcept |
| float | secf () const noexcept |
| float | cscf () const noexcept |
| float | cotf () const noexcept |
| operator std::pair< float, float > () const noexcept | |
Static Public Member Functions | |
| static sincos | from_radians (float rad) noexcept |
| static sincos | from_radians (uint16_t rad) noexcept |
| static sincos | from_degrees (float deg) noexcept |
Additional Inherited Members | |
Data Fields inherited from shz_sincos_t | |
| float | sin |
| float | cos |
C++ sine/cosine approximation pairs.
This structure contains the precomputed values for both sine and cosine of an angle.
Definition at line 42 of file shz_trig.hpp.
|
inlinenoexcept |
Converting constructor from C struct.
Definition at line 44 of file shz_trig.hpp.
|
inlinestaticnoexcept |
Returns a new sin/cos pair from the given angle in radians.
Definition at line 48 of file shz_trig.hpp.
|
inlinestaticnoexcept |
Returns a new sin/cos pair from the given 16-bit integer angle in radians.
Definition at line 53 of file shz_trig.hpp.
|
inlinestaticnoexcept |
Returns a new sin/cos pair from the given angle in degrees.
Definition at line 58 of file shz_trig.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Calculates the tangent from the given pair.
Definition at line 67 of file shz_trig.hpp.
|
inlinenoexcept |
Calculates the secant from the given pair.
Definition at line 69 of file shz_trig.hpp.
|
inlinenoexcept |
Calculates the cosecant from the given pair.
Definition at line 71 of file shz_trig.hpp.
|
inlinenoexcept |
Calculates the cotangent from the given pair.
Definition at line 73 of file shz_trig.hpp.
|
inlinenoexcept |
Definition at line 76 of file shz_trig.hpp.