Synopsis

void mth_GetAngleSinCos(double angle, double *sa, double *ca)

Purpose

Get sine and cosine of an angle.

Description

The sine and cosine of the specified angle will be returned. If the absolute value of sine is within MTH_ZERO_TOL of 0.0 it will be forced to 0.0 and cosine will be set to 1.0 with proper sign (+/-). Otherwise, if the absolute value of cosine is within MTH_ZERO_TOL of 0.0 it will be forced to 0.0 and sine will be set to 1.0 with proper sign.

Input

angle

Angle to obtain sine and cosine of

Output

sa

Sine of angle

ca

Cosine of angle