Quick question about your sin, cos, and etc, you're using Math.a[....] which is the arc[....]. Were you intending this? or did you just want Math.cos and etc?