ARCed.Core.ColorWheel.GetPoint C# (CSharp) Method

GetPoint() private static method

private static GetPoint ( double degrees, double radius, Point centerPoint ) : Point
degrees double
radius double
centerPoint Point
return Point
        private static Point GetPoint(double degrees, double radius, Point centerPoint)
        {
            var radians = degrees / DEGREES_PER_RADIAN;
            return new Point((int)(centerPoint.X + Math.Floor(radius * Math.Cos(radians))),
                (int)(centerPoint.Y - Math.Floor(radius * Math.Sin(radians))));
        }