From f0eb17aec6d6bec710a7a60ae5f3ee8947d433b1 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 6 Feb 2015 22:23:11 +0100 Subject: [PATCH] Added Matrix.ToString. --- Perspex.SceneGraph/Matrix.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Perspex.SceneGraph/Matrix.cs b/Perspex.SceneGraph/Matrix.cs index 6d055918fa..4a510cf2c7 100644 --- a/Perspex.SceneGraph/Matrix.cs +++ b/Perspex.SceneGraph/Matrix.cs @@ -171,6 +171,18 @@ namespace Perspex 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() { if (!this.HasInverse)