From 72573219eda42b2b93f390223bd078f229b6df9b Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 15 Jan 2023 12:41:08 -0800 Subject: [PATCH] fix uniform scale check --- src/Math/Fixed/Transform2D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math/Fixed/Transform2D.cs b/src/Math/Fixed/Transform2D.cs index a43081c..208b358 100644 --- a/src/Math/Fixed/Transform2D.cs +++ b/src/Math/Fixed/Transform2D.cs @@ -24,7 +24,7 @@ } public bool IsAxisAligned => Rotation % Fix64.PiOver2 == Fix64.Zero; - public bool IsUniformScale => Scale.X == Scale.Y; + public bool IsUniformScale => Scale.X == Scale.Y || Scale.X == -Scale.Y; public static readonly Transform2D Identity = new Transform2D(Vector2.Zero, Fix64.Zero, Vector2.One);