From 51b1f79a5d526e307782b8136a73fce90938d745 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Wed, 24 Jan 2024 12:05:29 +0300 Subject: [PATCH] refactor: int to Index for Shape Accessor --- Engine.Physics2D/Primitives/Shape.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine.Physics2D/Primitives/Shape.cs b/Engine.Physics2D/Primitives/Shape.cs index 231e114..3d1dc87 100644 --- a/Engine.Physics2D/Primitives/Shape.cs +++ b/Engine.Physics2D/Primitives/Shape.cs @@ -7,7 +7,7 @@ namespace Syntriax.Engine.Physics2D.Primitives; public record Shape(IList Vertices) { - public Vector2D this[int index] => Vertices[index]; + public Vector2D this[Index index] => Vertices[index]; public static Triangle GetSuperTriangle(Shape shape) {