diff --git a/X10D/src/Drawing/Circle.cs b/X10D/src/Drawing/Circle.cs index fb64d3b..ba7aa9c 100644 --- a/X10D/src/Drawing/Circle.cs +++ b/X10D/src/Drawing/Circle.cs @@ -15,7 +15,18 @@ public readonly struct Circle : IEquatable, IComparable, ICompar /// /// The unit circle. That is, a circle whose center point is (0, 0) and whose radius is 1. /// - public static readonly Circle Unit = new(Point.Empty, 1); + public static readonly Circle Unit = new(0, 0, 1); + + /// + /// Initializes a new instance of the struct. + /// + /// The X coordinate of the center point. + /// The Y coordinate of the center point. + /// The radius of the circle. + public Circle(int centerX, int centerY, int radius) + : this(new Point(centerX, centerY), radius) + { + } /// /// Initializes a new instance of the struct. diff --git a/X10D/src/Drawing/CircleF.cs b/X10D/src/Drawing/CircleF.cs index f969d0d..e0ceac6 100644 --- a/X10D/src/Drawing/CircleF.cs +++ b/X10D/src/Drawing/CircleF.cs @@ -17,7 +17,18 @@ public readonly struct CircleF : IEquatable, IComparable, ICom /// /// The unit circle. That is, a circle whose center point is (0, 0) and whose radius is 1. /// - public static readonly CircleF Unit = new(Vector2.Zero, 1.0f); + public static readonly CircleF Unit = new(0f, 0f, 1.0f); + + /// + /// Initializes a new instance of the struct. + /// + /// The X coordinate of the center point. + /// The Y coordinate of the center point. + /// The radius of the circle. + public CircleF(float centerX, float centerY, float radius) + : this(new Vector2(centerX, centerY), radius) + { + } /// /// Initializes a new instance of the struct.