| sincos | Function (ROM Call 0x286)

timath.h

void sincos (float x, short deg_flag, float *sine, float *cosine);

Calculates both sine and cosine in one turn.

sincos calculates both the sine and the cosine of floating point argument x, and stores the results in floating point destinationss pointed to by sine and cosine. The argument x is assumed to be specified in radians if deg_flag is 0, or in degrees if deg_flag is 1 (it seems that these two values are only legal values for deg_flag). See also notes related to sin and cos.

Uses: trig
Used by: cmd_drawpol, GR3_paint3d, cpt_gr_polar, dv_create_graph_titles, GM_Derivative, GM_TanLine, GR3_handleEvent

See also: sin, cos