Javascript Math vectorFromAngle(a)
function vectorFromAngle(a) { return [Math.cos(a), -Math.sin(a)] }