diff --git a/X10D/src/Drawing/Sphere.cs b/X10D/src/Drawing/Sphere.cs index b5d3124..9d557c4 100644 --- a/X10D/src/Drawing/Sphere.cs +++ b/X10D/src/Drawing/Sphere.cs @@ -1,4 +1,4 @@ -using System.Numerics; +using System.Numerics; namespace X10D.Drawing; @@ -46,6 +46,24 @@ public readonly struct Sphere : IEquatable, IComparable, ICompar /// The center point. public Vector3 Center { get; } + /// + /// Gets the circumference of the sphere. + /// + /// The circumference of the sphere, calculated as 2πr. + public float Circumference + { + get => 2 * MathF.PI * Radius; + } + + /// + /// Gets the diameter of the sphere. + /// + /// The diameter. + public float Diameter + { + get => Radius * 2; + } + /// /// Gets the radius of the sphere. ///