Swapped order of parameters for Vec Mat multiplication operator

This commit is contained in:
Matthias 2016-02-20 14:34:59 +02:00
parent 33d4731718
commit 75d7e9c718
2 changed files with 2 additions and 2 deletions

View file

@ -1532,7 +1532,7 @@ namespace OpenTK
/// <param name="vec">The vector to transform</param>
/// <param name="mat">The desired transformation</param>
/// <returns></returns>
public static Vector3 operator *(Matrix3 mat, Vector3 vec)
public static Vector3 operator *(Vector3 vec, Matrix3 mat)
{
Vector3 result;
Vector3.Transform(ref vec, ref mat, out result);

View file

@ -1512,7 +1512,7 @@ namespace OpenTK
/// <param name="vec">The vector to transform</param>
/// <param name="mat">The desired transformation</param>
/// <returns></returns>
public static Vector4 operator *(Matrix4 mat, Vector4 vec)
public static Vector4 operator *(Vector4 vec, Matrix4 mat)
{
Vector4 result;
Vector4.Transform(ref vec, ref mat, out result);