XMScalarSinCosEst

Estimates both the sine and cosine of a radian angle.

Syntax

void XMScalarSinCosEst(
         float *pSin,
         float *pCos,
         float Value
)  

Parameters

pSin
Type: float *

[out]

Address of a float that will contain the result of the sine of Value.

pCos
Type: float *

[out]

Address of a float that will contain the result of the cosine of Value.

Value
Type: float 

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.

Requirements

Header: Declared in directxmath.h.