Skip to content

Commit

Permalink
create only one identity matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopper committed Sep 24, 2018
1 parent bcf71f7 commit c5419a3
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 c5419a3

Please sign in to comment.