ToString() issue

Topics: Developer Forum
Apr 7, 2007 at 4:23 PM
In Matrix3F and Matrix4F.cs you have a possible typo

For Matrix 4F this should look like:
public override string ToString()
{

StringBuilder s = new StringBuilder();
s.Append(String.Format( "|{0}, {1}, {2}, {3}|\n", _m11, _m12, _m13, _m14));
s.Append(String.Format( "|{0}, {1}, {2}, {3}|\n", _m21, _m22, _m23, _m24));
s.Append(String.Format( "|{0}, {1}, {2}, {3}|\n", _m31, _m32, _m33, _m34));
s.Append(String.Format( "|{0}, {1}, {2}, {3}|\n", _m41, _m42, _m43, _m44));

return s.ToString();
}

-----------------
You have {0}, {1}, {3}, {4} in your code :)

Oh and a wonderful lib. Keep on coding, mate.