From 40f483974dca98d9939153f92495703e610e670b Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sat, 5 Apr 2025 15:59:26 +0300 Subject: [PATCH] chore: added shape.Transform extension methods --- Engine.Core/Primitives/Shape2D.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Engine.Core/Primitives/Shape2D.cs b/Engine.Core/Primitives/Shape2D.cs index 366cc88..eb0dc71 100644 --- a/Engine.Core/Primitives/Shape2D.cs +++ b/Engine.Core/Primitives/Shape2D.cs @@ -279,6 +279,12 @@ public static class Shape2DExtensions /// public static void TransformShape(this ITransform2D transform, Shape2D from, ref Shape2D to) => Shape2D.TransformShape(from, transform, ref to); + /// + public static Shape2D Transform(this Shape2D shape, ITransform2D transform) => Shape2D.TransformShape(shape, transform); + + /// + public static void Transform(this Shape2D from, ITransform2D transform, ref Shape2D to) => Shape2D.TransformShape(from, transform, ref to); + /// public static bool ApproximatelyEquals(this Shape2D left, Shape2D right, float epsilon = float.Epsilon) => Shape2D.ApproximatelyEquals(left, right, epsilon); }