diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs index 7c8dabf8..9b232069 100644 --- a/Source/OpenTK/Math/Vector2.cs +++ b/Source/OpenTK/Math/Vector2.cs @@ -1044,7 +1044,8 @@ namespace OpenTK /// public override string ToString() { - return String.Format("({0}, {1})", X, Y); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{2} {1})", X, Y, separator); } #endregion diff --git a/Source/OpenTK/Math/Vector2d.cs b/Source/OpenTK/Math/Vector2d.cs index 5305a185..6da4b78f 100644 --- a/Source/OpenTK/Math/Vector2d.cs +++ b/Source/OpenTK/Math/Vector2d.cs @@ -948,7 +948,8 @@ namespace OpenTK /// public override string ToString() { - return String.Format("({0}, {1})", X, Y); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{2} {1})", X, Y, separator); } #endregion diff --git a/Source/OpenTK/Math/Vector2h.cs b/Source/OpenTK/Math/Vector2h.cs index 0ac6d509..e7a334e3 100644 --- a/Source/OpenTK/Math/Vector2h.cs +++ b/Source/OpenTK/Math/Vector2h.cs @@ -315,7 +315,8 @@ namespace OpenTK /// Returns a string that contains this Half2's numbers in human-legible form. public override string ToString() { - return String.Format("({0}, {1})", X.ToString(), Y.ToString()); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{2} {1})", X, Y, separator); } #endregion ToString() diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index 5ce13d85..75e1573d 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -1323,7 +1323,8 @@ namespace OpenTK /// public override string ToString() { - return String.Format("({0}, {1}, {2})", X, Y, Z); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, separator); } #endregion diff --git a/Source/OpenTK/Math/Vector3d.cs b/Source/OpenTK/Math/Vector3d.cs index 5af1aeb5..264c126e 100644 --- a/Source/OpenTK/Math/Vector3d.cs +++ b/Source/OpenTK/Math/Vector3d.cs @@ -1337,7 +1337,8 @@ namespace OpenTK /// public override string ToString() { - return String.Format("({0}, {1}, {2})", X, Y, Z); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, separator); } #endregion diff --git a/Source/OpenTK/Math/Vector3h.cs b/Source/OpenTK/Math/Vector3h.cs index 7f417808..16b4a0e6 100644 --- a/Source/OpenTK/Math/Vector3h.cs +++ b/Source/OpenTK/Math/Vector3h.cs @@ -358,7 +358,8 @@ namespace OpenTK /// Returns a string that contains this Half3's numbers in human-legible form. public override string ToString() { - return String.Format("({0}, {1}, {2})", X.ToString(), Y.ToString(), Z.ToString()); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{3} {1}{3} {2})", X.ToString(), Y.ToString(), Z.ToString(), separator); } #endregion ToString() diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs index 384fdf74..b2c40e73 100644 --- a/Source/OpenTK/Math/Vector4.cs +++ b/Source/OpenTK/Math/Vector4.cs @@ -1155,7 +1155,8 @@ namespace OpenTK /// public override string ToString() { - return String.Format("({0}, {1}, {2}, {3})", X, Y, Z, W); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, separator); } #endregion diff --git a/Source/OpenTK/Math/Vector4d.cs b/Source/OpenTK/Math/Vector4d.cs index 95eec840..aa507d6a 100644 --- a/Source/OpenTK/Math/Vector4d.cs +++ b/Source/OpenTK/Math/Vector4d.cs @@ -1174,7 +1174,8 @@ namespace OpenTK /// public override string ToString() { - return String.Format("({0}, {1}, {2}, {3})", X, Y, Z, W); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, separator); } #endregion diff --git a/Source/OpenTK/Math/Vector4h.cs b/Source/OpenTK/Math/Vector4h.cs index 4a7f83a6..20086720 100644 --- a/Source/OpenTK/Math/Vector4h.cs +++ b/Source/OpenTK/Math/Vector4h.cs @@ -389,7 +389,8 @@ namespace OpenTK /// Returns a string that contains this Half4's numbers in human-legible form. public override string ToString() { - return String.Format("({0}, {1}, {2}, {3})", X.ToString(), Y.ToString(), Z.ToString(), W.ToString()); + string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; + return String.Format("({0}{4} {1}{4} {2}{4} {3})", X.ToString(), Y.ToString(), Z.ToString(), W.ToString(), separator); } #endregion ToString()