Browse Source

HasInverse Property property of Matrix

pull/468/head
donandren 11 years ago
parent
commit
b26573656a
  1. 6
      src/Perspex.SceneGraph/Matrix.cs

6
src/Perspex.SceneGraph/Matrix.cs

@ -53,6 +53,11 @@ namespace Perspex
/// </summary>
public bool IsIdentity => Equals(Identity);
/// <summary>
/// HasInverse Property - returns true if this matrix is invertable, false otherwise.
/// </summary>
public bool HasInverse => GetDeterminant() != 0;
/// <summary>
/// The first element of the first row
/// </summary>
@ -209,6 +214,7 @@ namespace Perspex
return (_m11 * _m22) - (_m12 * _m21);
}
/// <summary>
/// Returns a boolean indicating whether the matrix is equal to the other given matrix.
/// </summary>

Loading…
Cancel
Save