Browse Source
Merge pull request #1915 from ahopper/perf-matrix-only-one-identity
create only one identity matrix
pull/1917/merge
Jumar Macato
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Visuals/Matrix.cs
|
|
|
@ -47,7 +47,7 @@ namespace Avalonia |
|
|
|
/// <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.
|
|
|
|
|