Function directx_math::XMScalarCosEst [−][src]
pub fn XMScalarCosEst(Value: f32) -> f32
Estimates the cosine of a radian angle.
Parameters
Value
float value describing the radian angle.
Return value
Returns the cosine of Value.
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 6-degree minimax approximation.
Reference
https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMScalarCosEst