mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:35:39 +00:00
Swapped order of parameters for Vec Mat multiplication operator
This commit is contained in:
parent
33d4731718
commit
75d7e9c718
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue