public static GetPointOnCircle ( Point location, double radius, double angle ) : Point | ||
location | Point | The location of the circle |
radius | double | The radius of the circle |
angle | double | The angle |
return | Point |
public static Point GetPointOnCircle(Point location, double radius, double angle)
{
return new Point((int)(location.X + radius * Math.Cos(angle * Math.PI / 180F)),
(int)(location.Y + radius * Math.Sin(angle * Math.PI / 180F)));
}