@@ -301,7 +301,7 @@ public static Size GetTransformedSize(Matrix4x4 matrix, Size size)
301301 {
302302 Guard . IsTrue ( size . Width > 0 && size . Height > 0 , nameof ( size ) , "Source size dimensions cannot be 0!" ) ;
303303
304- if ( matrix . Equals ( default ) || matrix . Equals ( Matrix4x4 . Identity ) )
304+ if ( matrix . IsIdentity || matrix . Equals ( default ) )
305305 {
306306 return size ;
307307 }
@@ -376,7 +376,7 @@ private static Size GetTransformedSize(Matrix3x2 matrix, Size size, TransformSpa
376376 {
377377 Guard . IsTrue ( size . Width > 0 && size . Height > 0 , nameof ( size ) , "Source size dimensions cannot be 0!" ) ;
378378
379- if ( matrix . Equals ( default ) || matrix . Equals ( Matrix3x2 . Identity ) )
379+ if ( matrix . IsIdentity || matrix . Equals ( default ) )
380380 {
381381 return size ;
382382 }
@@ -412,7 +412,7 @@ private static Size GetTransformedSize(Matrix3x2 matrix, Size size, TransformSpa
412412 /// </returns>
413413 private static bool TryGetTransformedRectangle ( RectangleF rectangle , Matrix3x2 matrix , out Rectangle bounds )
414414 {
415- if ( rectangle . Equals ( default ) || Matrix3x2 . Identity . Equals ( matrix ) )
415+ if ( matrix . IsIdentity || rectangle . Equals ( default ) )
416416 {
417417 bounds = default ;
418418 return false ;
@@ -439,7 +439,7 @@ private static bool TryGetTransformedRectangle(RectangleF rectangle, Matrix3x2 m
439439 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
440440 private static bool TryGetTransformedRectangle ( RectangleF rectangle , Matrix4x4 matrix , out Rectangle bounds )
441441 {
442- if ( rectangle . Equals ( default ) || Matrix4x4 . Identity . Equals ( matrix ) )
442+ if ( matrix . IsIdentity || rectangle . Equals ( default ) )
443443 {
444444 bounds = default ;
445445 return false ;
0 commit comments