chore!: renamed Shape2D.Box to Square for consistency

This commit is contained in:
2025-04-05 17:25:50 +03:00
parent 40f483974d
commit d1129c95df
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ namespace Syntriax.Engine.Core;
public readonly struct Shape2D(List<Vector2D> vertices) : IEnumerable<Vector2D>
{
public static readonly Shape2D Triangle = CreateNgon(3, Vector2D.Up);
public static readonly Shape2D Box = CreateNgon(4, Vector2D.One);
public static readonly Shape2D Square = CreateNgon(4, Vector2D.One);
public static readonly Shape2D Pentagon = CreateNgon(5, Vector2D.Up);
public static readonly Shape2D Hexagon = CreateNgon(6, Vector2D.Right);