diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index 6d0d1899..fa79e392 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -1138,28 +1138,6 @@ namespace OpenTK vec.X * mat.Row0.Z + vec.Y * mat.Row1.Z + vec.Z * mat.Row2.Z); } - /// Transform a Vector by the given Matrix - /// The vector to transform - /// The desired transformation - /// The transformed vector - public static Vector3 Transform(Vector3 vec, Matrix4 mat) - { - Vector3 result; - Transform(ref vec, ref mat, out result); - return result; - } - - /// Transform a Vector by the given Matrix - /// The vector to transform - /// The desired transformation - /// The transformed vector - public static void Transform(ref Vector3 vec, ref Matrix4 mat, out Vector3 result) - { - Vector4 v4 = new Vector4(vec.X, vec.Y, vec.Z, 1.0f); - Vector4.Transform(ref v4, ref mat, out v4); - result = v4.Xyz; - } - /// /// Transforms a vector by a quaternion rotation. /// @@ -1214,28 +1192,6 @@ namespace OpenTK mat.Row2.X * vec.X + mat.Row2.Y * vec.Y + mat.Row2.Z * vec.Z); } - /// Transform a Vector by the given Matrix using right-handed notation - /// The desired transformation - /// The vector to transform - public static Vector3 Transform(Matrix4 mat, Vector3 vec) - { - Vector3 result; - Transform(ref mat, ref vec, out result); - return result; - } - - /// Transform a Vector by the given Matrix using right-handed notation - /// The desired transformation - /// The vector to transform - /// The transformed vector - public static void Transform(ref Matrix4 mat, ref Vector3 vec, out Vector3 result) - { - result = new Vector3( - mat.Row0.X * vec.X + mat.Row0.Y * vec.Y + mat.Row0.Z * vec.Z + mat.Row0.W, - mat.Row1.X * vec.X + mat.Row1.Y * vec.Y + mat.Row1.Z * vec.Z + mat.Row1.W, - mat.Row2.X * vec.X + mat.Row2.Y * vec.Y + mat.Row2.Z * vec.Z + mat.Row2.W); - } - /// Transform a Vector3 by the given Matrix, and project the resulting Vector4 back to a Vector3 /// The vector to transform /// The desired transformation @@ -1584,19 +1540,6 @@ namespace OpenTK return result; } - /// - /// Transform a Vector by the given Matrix. - /// - /// The vector to transform - /// The desired transformation - /// The transformed vector - public static Vector3 operator *(Vector3 vec, Matrix4 mat) - { - Vector3 result; - Vector3.Transform(ref vec, ref mat, out result); - return result; - } - /// /// Transform a Vector by the given Matrix using right-handed notation /// @@ -1610,19 +1553,6 @@ namespace OpenTK return result; } - /// - /// Transform a Vector by the given Matrix using right-handed notation - /// - /// The desired transformation - /// The vector to transform - /// The transformed vector - public static Vector3 operator *(Matrix4 mat, Vector3 vec) - { - Vector3 result; - Vector3.Transform(ref mat, ref vec, out result); - return result; - } - /// /// Transforms a vector by a quaternion rotation. ///