[−][src]Function directx_math::XMScalarSinCosEst
pub fn XMScalarSinCosEst(pSin: &mut f32, pCos: &mut f32, Value: f32)
Estimates both the sine and cosine of a radian angle.
Parameters
pSin
Address of a float that will contain the result of the sine of Value.
pCos
Address of a float that will contain the result of the cosine of Value.
Value
float value describing the radian angle.
Return value
None
Remarks
Est
functions offer increased performance at the expense of reduced accuracy. Est
functions are appropriate
for non-critical calculations where accuracy can be sacrificed for speed. The exact amount of lost accuracy
and speed increase are platform dependent.
This function uses a 7-degree minimax approximation for sine; 6-degree for cosine.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMScalarSinCosEst