Calculates a vector (x and y) based on an angle in degrees
Summary (oneliner)
If you e.g. pass in 90
, x
will be -1
and y
0
(so counter-clockwise)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
degree (Number)
The angle you want to convert (in degrees)
Outputs
x (Number)
The x-vector in the range [-1, 1]
y (Number)
The y-vector in the range [-1, 1]