From 11483231a5920d480256680935459ed77ecb80bb Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sat, 27 Jan 2024 21:21:35 +0300 Subject: [PATCH] fix: ShapeExtensions.CreateCopy not having this Keyword --- 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 432063b..d332ab0 100644 --- a/Engine.Physics2D/Primitives/Shape.cs +++ b/Engine.Physics2D/Primitives/Shape.cs @@ -140,7 +140,7 @@ public readonly struct Shape(IList Vertices) : IEnumerable public static class ShapeExtensions { - public static Shape CreateCopy(Shape shape) => Shape.CreateCopy(shape); + public static Shape CreateCopy(this Shape shape) => Shape.CreateCopy(shape); public static Triangle ToSuperTriangle(this Shape shape) => Shape.GetSuperTriangle(shape); public static void ToLines(this Shape shape, IList lines) => Shape.GetLines(shape, lines); public static List ToLines(this Shape shape) => Shape.GetLines(shape);