Trigonometry
Demo
cos
(x-value):
sin
(y-value):
tan (y/x
ratio):
convert degrees to radians, you get x,y
coordinates based on a circle
with a radius of one (pixel in this
script).
cos =
x (from -1 to +1 on the x axis) sin = y (from -1 to +1 on
the y axis)
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
x-axis
.
.
.
.
.
.
.
.
.
y-axis
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.