Skip to content

Commit

Permalink
Merge pull request #1915 from ahopper/perf-matrix-only-one-identity
Browse files Browse the repository at this point in the history
create only one identity matrix
  • Loading branch information
jmacato authored Sep 24, 2018
2 parents bcf71f7 + c5419a3 commit 6df48f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Visuals/Matrix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Matrix(
/// <summary>
/// Returns the multiplicative identity matrix.
/// </summary>
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);

/// <summary>
/// Returns whether the matrix is the identity matrix.
Expand Down

0 comments on commit 6df48f2

Please sign in to comment.