diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs index da08ae5a..9dad9391 100644 --- a/Source/OpenTK/Math/Vector2.cs +++ b/Source/OpenTK/Math/Vector2.cs @@ -1,4 +1,4 @@ -#region --- License --- +#region --- License --- /* Copyright (c) 2006 - 2008 The Open Toolkit library. @@ -908,7 +908,7 @@ namespace OpenTK /// The result of the operation. public static void Transform(ref Vector2 vec, ref Quaternion quat, out Vector2 result) { - Quaternion v = new Quaternion() { X = vec.X, Y = vec.Y, Z = 0, W = 0 }; + Quaternion v = new Quaternion(vec.X, vec.Y, 0, 0); Quaternion i; Quaternion t; Quaternion.Invert(ref quat, out i); diff --git a/Source/OpenTK/Math/Vector2d.cs b/Source/OpenTK/Math/Vector2d.cs index 98c6dfd4..4c4c68f9 100644 --- a/Source/OpenTK/Math/Vector2d.cs +++ b/Source/OpenTK/Math/Vector2d.cs @@ -796,7 +796,7 @@ namespace OpenTK /// The result of the operation. public static void Transform(ref Vector2d vec, ref Quaterniond quat, out Vector2d result) { - Quaterniond v = new Quaterniond() { X = vec.X, Y = vec.Y, Z = 0, W = 0 }; + Quaterniond v = new Quaterniond(vec.X, vec.Y, 0, 0); Quaterniond i; Quaterniond t; Quaterniond.Invert(ref quat, out i); diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index a34584de..35e52064 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -1,4 +1,4 @@ -#region --- License --- +#region --- License --- /* Copyright (c) 2006 - 2008 The Open Toolkit library. @@ -1115,7 +1115,7 @@ namespace OpenTK /// The result of the operation. public static void Transform(ref Vector3 vec, ref Quaternion quat, out Vector3 result) { - Quaternion v = new Quaternion() { X = vec.X, Y = vec.Y, Z = vec.Z, W = 0 }; + Quaternion v = new Quaternion(vec.X, vec.Y, vec.Z, 0); Quaternion i; Quaternion t; Quaternion.Invert(ref quat, out i); diff --git a/Source/OpenTK/Math/Vector3d.cs b/Source/OpenTK/Math/Vector3d.cs index d924395b..9ad39e2f 100644 --- a/Source/OpenTK/Math/Vector3d.cs +++ b/Source/OpenTK/Math/Vector3d.cs @@ -1111,7 +1111,7 @@ namespace OpenTK /// The result of the operation. public static void Transform(ref Vector3d vec, ref Quaterniond quat, out Vector3d result) { - Quaterniond v = new Quaterniond() { X = vec.X, Y = vec.Y, Z = vec.Z, W = 0 }; + Quaterniond v = new Quaterniond(vec.X, vec.Y, vec.Z, 0); Quaterniond i; Quaterniond t; Quaterniond.Invert(ref quat, out i); diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs index ccbd7d16..0994241b 100644 --- a/Source/OpenTK/Math/Vector4.cs +++ b/Source/OpenTK/Math/Vector4.cs @@ -1,4 +1,4 @@ -#region --- License --- +#region --- License --- /* Copyright (c) 2006 - 2008 The Open Toolkit library. @@ -963,7 +963,7 @@ namespace OpenTK /// The result of the operation. public static void Transform(ref Vector4 vec, ref Quaternion quat, out Vector4 result) { - Quaternion v = new Quaternion() { X = vec.X, Y = vec.Y, Z = vec.Z, W = vec.W }; + Quaternion v = new Quaternion(vec.X, vec.Y, vec.Z, vec.W); Quaternion i; Quaternion t; Quaternion.Invert(ref quat, out i); diff --git a/Source/OpenTK/Math/Vector4d.cs b/Source/OpenTK/Math/Vector4d.cs index 5e58f281..9cfe2c98 100644 --- a/Source/OpenTK/Math/Vector4d.cs +++ b/Source/OpenTK/Math/Vector4d.cs @@ -966,7 +966,7 @@ namespace OpenTK /// The result of the operation. public static void Transform(ref Vector4d vec, ref Quaterniond quat, out Vector4d result) { - Quaterniond v = new Quaterniond() { X = vec.X, Y = vec.Y, Z = vec.Z, W = vec.W }; + Quaterniond v = new Quaterniond(vec.X, vec.Y, vec.Z, vec.W); Quaterniond i; Quaterniond t; Quaterniond.Invert(ref quat, out i);