This is really making me wish I paid attention in Math at school! I'm trying to write a function that will return the x and y coordinates of a point along the circumference of a circle.

I found what I thought was the equation on another forum, but it doesn't seem to be right. Here is my current function, it assumes that the topmost point of the circle is 0º/360º:

I can tell it's not working because if my origin is 0,0 and my angle is 90º then my Y coordinate should be 0. Is there anyone here who paid attention in Math and could help me?Code:function GetCircumferencePoints(Radius, OriginX, OriginY, Angle) { var X = OriginX+Radius*Math.sin(Angle); var Y = OriginY+Radius*-Math.cos(Angle); return [X,Y]; }

Thanks in advance.