FlatRedBall.Content.Math.Geometry.CircleSave.ToCircle C# (CSharp) Method

ToCircle() public method

public ToCircle ( ) : FlatRedBall.Math.Geometry.Circle
return FlatRedBall.Math.Geometry.Circle
        public FlatRedBall.Math.Geometry.Circle ToCircle()
        {
            FlatRedBall.Math.Geometry.Circle circle = new FlatRedBall.Math.Geometry.Circle();

            circle.X = this.X;
            circle.Y = this.Y;
            circle.Z = this.Z;

            circle.Radius = this.Radius;

            circle.Name = this.Name;

            circle.Color =
#if FRB_MDX
                Color.FromArgb(
                (int)(Alpha * 255),
                (int)(Red * 255),
                (int)(Green * 255),
                (int)(Blue * 255));
#else
                new Color(
                    (byte)(Red * 255),
                    (byte)(Green * 255),
                    (byte)(Blue * 255),
                    (byte)(Alpha * 255));
#endif

            return circle;

        }