Browse Source

Added Matrix.ToString.

pull/39/head
Steven Kirk 11 years ago
parent
commit
f0eb17aec6
  1. 12
      Perspex.SceneGraph/Matrix.cs

12
Perspex.SceneGraph/Matrix.cs

@ -171,6 +171,18 @@ namespace Perspex
throw new NotImplementedException(); throw new NotImplementedException();
} }
public override string ToString()
{
return string.Format(
"{0},{1} {2},{3} {4},{5}",
this.m11,
this.m12,
this.m21,
this.m22,
this.offsetX,
this.offsetY);
}
public Matrix Invert() public Matrix Invert()
{ {
if (!this.HasInverse) if (!this.HasInverse)

Loading…
Cancel
Save