diff --git a/Source/Examples/OpenTK/Test/MatrixTest.cs b/Source/Examples/OpenTK/Test/MatrixTest.cs index 2b6d9739..690ae2d6 100644 --- a/Source/Examples/OpenTK/Test/MatrixTest.cs +++ b/Source/Examples/OpenTK/Test/MatrixTest.cs @@ -24,7 +24,7 @@ namespace Examples.Tests Matrix4 translation = new Matrix4(new Vector4(1, 0, 0, 2), new Vector4(0, 1, 0, 3), new Vector4(0, 0, 1, -1), new Vector4(0, 0, 0, 1)); Vector4 point = new Vector4(x, y, z, 1); - Vector4 result = Vector4.Transform(point, createdTranslation); + Vector4 result = Vector4.Transform(point, translation); Trace.WriteLine("Result should be: (3, 4, 0, 1) : " + result); diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs index df5a86ac..e21ab7c1 100644 --- a/Source/OpenTK/Math/Vector2.cs +++ b/Source/OpenTK/Math/Vector2.cs @@ -1053,14 +1053,14 @@ namespace OpenTK #region public override string ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// /// Returns a System.String that represents the current Vector2. /// /// public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{2} {1})", X, Y, separator); + return String.Format("({0}{2} {1})", X, Y, listSeparator); } #endregion diff --git a/Source/OpenTK/Math/Vector2d.cs b/Source/OpenTK/Math/Vector2d.cs index 9e3c557f..f0e019f3 100644 --- a/Source/OpenTK/Math/Vector2d.cs +++ b/Source/OpenTK/Math/Vector2d.cs @@ -957,14 +957,14 @@ namespace OpenTK #region public override string ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// /// Returns a System.String that represents the current instance. /// /// public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{2} {1})", X, Y, separator); + return String.Format("({0}{2} {1})", X, Y, listSeparator); } #endregion diff --git a/Source/OpenTK/Math/Vector2h.cs b/Source/OpenTK/Math/Vector2h.cs index e7a334e3..aeb6d3db 100644 --- a/Source/OpenTK/Math/Vector2h.cs +++ b/Source/OpenTK/Math/Vector2h.cs @@ -312,11 +312,11 @@ namespace OpenTK #region ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// Returns a string that contains this Half2's numbers in human-legible form. public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{2} {1})", X, Y, separator); + return String.Format("({0}{2} {1})", X, Y, listSeparator); } #endregion ToString() diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index 4470b884..c09b2316 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -1335,14 +1335,14 @@ namespace OpenTK #region public override string ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// /// Returns a System.String that represents the current Vector3. /// /// public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, separator); + return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, listSeparator); } #endregion diff --git a/Source/OpenTK/Math/Vector3d.cs b/Source/OpenTK/Math/Vector3d.cs index f269cf18..889b4d26 100644 --- a/Source/OpenTK/Math/Vector3d.cs +++ b/Source/OpenTK/Math/Vector3d.cs @@ -1348,14 +1348,14 @@ namespace OpenTK #region public override string ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// /// Returns a System.String that represents the current Vector3. /// /// public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, separator); + return String.Format("({0}{3} {1}{3} {2})", X, Y, Z, listSeparator); } #endregion diff --git a/Source/OpenTK/Math/Vector3h.cs b/Source/OpenTK/Math/Vector3h.cs index 16b4a0e6..947859eb 100644 --- a/Source/OpenTK/Math/Vector3h.cs +++ b/Source/OpenTK/Math/Vector3h.cs @@ -355,11 +355,11 @@ namespace OpenTK #region ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// Returns a string that contains this Half3's numbers in human-legible form. public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{3} {1}{3} {2})", X.ToString(), Y.ToString(), Z.ToString(), separator); + return String.Format("({0}{3} {1}{3} {2})", X.ToString(), Y.ToString(), Z.ToString(), listSeparator); } #endregion ToString() diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs index 7bf41bd8..3a755bff 100644 --- a/Source/OpenTK/Math/Vector4.cs +++ b/Source/OpenTK/Math/Vector4.cs @@ -1168,14 +1168,14 @@ namespace OpenTK #region public override string ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// /// Returns a System.String that represents the current Vector4. /// /// public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, separator); + return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, listSeparator); } #endregion diff --git a/Source/OpenTK/Math/Vector4d.cs b/Source/OpenTK/Math/Vector4d.cs index 10eb9770..384dea71 100644 --- a/Source/OpenTK/Math/Vector4d.cs +++ b/Source/OpenTK/Math/Vector4d.cs @@ -1187,14 +1187,14 @@ namespace OpenTK #region public override string ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// /// Returns a System.String that represents the current Vector4d. /// /// public override string ToString() { - string separator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; - return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, separator); + return String.Format("({0}{4} {1}{4} {2}{4} {3})", X, Y, Z, W, listSeparator); } #endregion diff --git a/Source/OpenTK/Math/Vector4h.cs b/Source/OpenTK/Math/Vector4h.cs index 20086720..38f040cf 100644 --- a/Source/OpenTK/Math/Vector4h.cs +++ b/Source/OpenTK/Math/Vector4h.cs @@ -386,11 +386,11 @@ namespace OpenTK #region ToString() + private static string listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator; /// Returns a string that contains this Half4's numbers in human-legible form. public override string 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); + return String.Format("({0}{4} {1}{4} {2}{4} {3})", X.ToString(), Y.ToString(), Z.ToString(), W.ToString(), listSeparator); } #endregion ToString()