public override string ToString() { StringKeyValue builder = new StringKeyValue("Affine"); builder.NewLine().PushBracket().AddValue(MathUtils.ToString((m00))).Comma().AddValue(MathUtils.ToString(m10)).Comma().AddValue(MathUtils.ToString(tx)).PopBracket().NewLine().PushBracket().AddValue(MathUtils.ToString(m01)).Comma().AddValue(MathUtils.ToString(m11)).Comma().AddValue(MathUtils.ToString(ty)).PopBracket().NewLine().AddValue("[0.0,0.0,1.0]").NewLine(); return(builder.ToString()); }
public override string ToString() { StringKeyValue builder = new StringKeyValue("Matrix4"); builder.NewLine().AddValue("[{0},{1},{2},{3}]").NewLine().AddValue("[{4},{5}.{6},{7}]").NewLine() .AddValue("[{8},{9},{10},{11}]").NewLine().AddValue("[{12},{13},{14},{15}]").NewLine(); return(StringUtils.Format(builder.ToString(), val[M00], val[M01], val[M02], val[M03], val[M10], val[M11], val[M12], val[M13], val[M20], val[M21], val[M22], val[M23], val[M30], val[M31], val[M32], val[M33])); }