feat: Circle.UnitCircle
This commit is contained in:
parent
a3c4afb223
commit
5620f2f1eb
|
@ -6,6 +6,8 @@ namespace Syntriax.Engine.Physics2D.Primitives;
|
|||
[System.Diagnostics.DebuggerDisplay("Center: {Center.ToString(), nq}, Radius: {Radius}")]
|
||||
public readonly struct Circle(Vector2D Center, float Radius)
|
||||
{
|
||||
public static readonly Circle UnitCircle = new(Vector2D.Zero, 1f);
|
||||
|
||||
public readonly Vector2D Center { get; init; } = Center;
|
||||
public readonly float Radius { get; init; } = Radius;
|
||||
|
||||
|
|
Loading…
Reference in New Issue