Calculates the sine of an angle.
sin() is useful for many geometric tasks in creative coding. The values returned oscillate between -1 and 1 as the input angle increases. sin() takes into account the current angleMode().
Examples
Syntax
sin(angle)Parameters
angle
Number:
the angle.
Returns
Number: sine of the angle.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/trigonometry.js and open a pull request!