From c5419a3c265ba6dc2c7f9222d2cc57b3549c2d33 Mon Sep 17 00:00:00 2001 From: ahopper Date: Mon, 24 Sep 2018 10:12:11 +0100 Subject: [PATCH] create only one identity matrix --- src/Avalonia.Visuals/Matrix.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Visuals/Matrix.cs b/src/Avalonia.Visuals/Matrix.cs index 287ad1b3a2..cdaaa2b4b4 100644 --- a/src/Avalonia.Visuals/Matrix.cs +++ b/src/Avalonia.Visuals/Matrix.cs @@ -47,7 +47,7 @@ namespace Avalonia /// /// Returns the multiplicative identity matrix. /// - public static Matrix Identity => new Matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0); + public static Matrix Identity { get; } = new Matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0); /// /// Returns whether the matrix is the identity matrix.