AStarCollisionMap.PathfindingUtil.GetPointOnCircle C# (CSharp) Method

GetPointOnCircle() public static method

Gets a point at the edge of a circle at a location, with given radius, with the given angle.
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)));
        }