diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index a6b5be0a..f20bc7c7 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -1194,7 +1194,6 @@ namespace OpenTK /// Transform a Vector by the given Matrix using right-handed notation /// The vector to transform /// The desired transformation - /// The transformed vector public static Vector3 RightHandedTransform(Vector3 vec, Matrix3 mat) { Vector3 result; @@ -1217,7 +1216,6 @@ namespace OpenTK /// Transform a Vector by the given Matrix using right-handed notation /// The vector to transform /// The desired transformation - /// The transformed vector public static Vector3 RightHandedTransform(Vector3 vec, Matrix4 mat) { Vector3 result; @@ -1231,7 +1229,7 @@ namespace OpenTK /// The transformed vector public static void RightHandedTransform(ref Vector3 vec, ref Matrix4 mat, out Vector3 result) { - result = new OpenTK.Vector3( + 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); @@ -1572,13 +1570,13 @@ namespace OpenTK return vec; } - /// - /// Transform a Vector by the given Matrix. - /// - /// The vector to transform - /// The desired transformation - /// - public static Vector3 operator *(Vector3 vec, Matrix3 mat) + /// + /// Transform a Vector by the given Matrix. + /// + /// The vector to transform + /// The desired transformation + /// The transformed vector + public static Vector3 operator *(Vector3 vec, Matrix3 mat) { Vector3 result; Vector3.Transform(ref vec, ref mat, out result); @@ -1590,7 +1588,7 @@ namespace OpenTK /// /// The vector to transform /// The desired transformation - /// + /// The transformed vector public static Vector3 operator *(Vector3 vec, Matrix4 mat) { Vector3 result; @@ -1598,7 +1596,9 @@ namespace OpenTK return result; } - /// Transform a Vector by the given Matrix using right-handed notation + /// + /// Transform a Vector by the given Matrix using right-handed notation + /// /// The vector to transform /// The desired transformation /// The transformed vector @@ -1609,7 +1609,9 @@ namespace OpenTK return result; } - /// Transform a Vector by the given Matrix using right-handed notation + /// + /// Transform a Vector by the given Matrix using right-handed notation + /// /// The vector to transform /// The desired transformation /// The transformed vector diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs index d19ad77c..ae8373c7 100644 --- a/Source/OpenTK/Math/Vector4.cs +++ b/Source/OpenTK/Math/Vector4.cs @@ -1020,7 +1020,6 @@ namespace OpenTK /// Transform a Vector by the given Matrix using right-handed notation /// The vector to transform /// The desired transformation - /// The transformed vector public static Vector4 RightHandedTransform(Vector4 vec, Matrix4 mat) { Vector4 result; @@ -1530,20 +1529,22 @@ namespace OpenTK return vec; } - /// - /// Transform a Vector by the given Matrix. - /// - /// The vector to transform - /// The desired transformation - /// - public static Vector4 operator *(Vector4 vec, Matrix4 mat) + /// + /// Transform a Vector by the given Matrix. + /// + /// The vector to transform + /// The desired transformation + /// The transformed vector + public static Vector4 operator *(Vector4 vec, Matrix4 mat) { Vector4 result; Vector4.Transform(ref vec, ref mat, out result); return result; } - /// Transform a Vector by the given Matrix using right-handed notation + /// + /// Transform a Vector by the given Matrix using right-handed notation + /// /// The vector to transform /// The desired transformation /// The transformed vector @@ -1554,13 +1555,13 @@ namespace OpenTK return result; } - /// - /// Transforms a vector by a quaternion rotation. - /// - /// The vector to transform. - /// The quaternion to rotate the vector by. - /// - public static Vector4 operator *(Quaternion quat, Vector4 vec) + /// + /// Transforms a vector by a quaternion rotation. + /// + /// The vector to transform. + /// The quaternion to rotate the vector by. + /// The transformed vector + public static Vector4 operator *(Quaternion quat, Vector4 vec) { Vector4 result; Vector4.Transform(ref vec, ref quat, out result);