Jump to content

Ssin()

From OpenBOR
Revision as of 12:55, 21 July 2026 by Dcurrent (talk | contribs)

Accepts a floating-point angle in degrees and calculates its sine using the C sin() function: sin(input × π / 180).

For integer angles, use sin() instead to take advantage of its lookup table.

float input = 1.0;  // Example input angle in degrees

float result = ssin(input); 

// result = 0.017452406