Jump to content

Scos()

From OpenBOR

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

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

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

float result = scos(input);

// result = 0.999847695