Jump to content

Ssin()

From OpenBOR
Revision as of 12:57, 21 July 2026 by Dcurrent (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 faster lookup table.

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

float result = ssin(input); 

// result = 0.017452406