Function directx_math::XMScalarSinCos[][src]

pub fn XMScalarSinCos(pSin: &mut f32, pCos: &mut f32, Value: f32)

Computes 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

This function uses a 11-degree minimax approximation for sine; 10-degree for cosine.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMScalarSinCos