Raven Engine v0.1
Loading...
Searching...
No Matches
TrigCoeffs.inl File Reference

Classes

struct  Crux::Detail::SinCoeffs< 5 >
 Degree-5 sine: sin(x) ~= c1*x + c3*x^3 + c5*x^5. More...
struct  Crux::Detail::SinCoeffs< 7 >
 Degree-7 sine: sin(x) ~= c1*x + c3*x^3 + c5*x^5 + c7*x^7. More...
struct  Crux::Detail::SinCoeffs< 9 >
 Degree-9 sine: sin(x) ~= c1*x + c3*x^3 + c5*x^5 + c7*x^7 + c9*x^9. More...
struct  Crux::Detail::CosCoeffs< 5 >
 Degree-5 cosine: cos(x) ~= c0 + c2*x^2 + c4*x^4. More...
struct  Crux::Detail::CosCoeffs< 7 >
 Degree-7 cosine: cos(x) ~= c0 + c2*x^2 + c4*x^4 + c6*x^6. More...
struct  Crux::Detail::CosCoeffs< 9 >
 Degree-9 cosine: cos(x) ~= c0 + c2*x^2 + c4*x^4 + c6*x^6 + c8*x^8. More...

Namespaces

namespace  Crux
namespace  Crux::Detail

Enumerations

enum class  Crux::Detail::PrecisionMode { Crux::Detail::Fast , Crux::Detail::Standard , Crux::Detail::High }
 Precision modes for selecting polynomial degree. More...

Functions

template<PrecisionMode Mode>
constexpr float Crux::Detail::PolySin (float x)
 Dispatch to the appropriate degree-xx sine polynomial.
template<PrecisionMode Mode>
constexpr float Crux::Detail::PolyCos (float x)
 Dispatch to the appropriate degree-xx cosine polynomial.