feat: Circle.UnitCircle

This commit is contained in:
Syntriax 2024-01-27 20:14:55 +03:00
parent a3c4afb223
commit 5620f2f1eb
1 changed files with 2 additions and 0 deletions

View File

@ -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;