mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 12:05:33 +00:00
* Vector4.cs:
* Vector3.cs: * Vector2.cs: * Vector4d.cs: * Vector3d.cs: * Vector2d.cs: Removed code using C# 3.0 features.
This commit is contained in:
parent
598c447b2c
commit
01bb1971e4
|
@ -1,4 +1,4 @@
|
|||
#region --- License ---
|
||||
#region --- License ---
|
||||
/*
|
||||
Copyright (c) 2006 - 2008 The Open Toolkit library.
|
||||
|
||||
|
@ -908,7 +908,7 @@ namespace OpenTK
|
|||
/// <param name="result">The result of the operation.</param>
|
||||
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);
|
||||
|
|
|
@ -796,7 +796,7 @@ namespace OpenTK
|
|||
/// <param name="result">The result of the operation.</param>
|
||||
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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#region --- License ---
|
||||
#region --- License ---
|
||||
/*
|
||||
Copyright (c) 2006 - 2008 The Open Toolkit library.
|
||||
|
||||
|
@ -1115,7 +1115,7 @@ namespace OpenTK
|
|||
/// <param name="result">The result of the operation.</param>
|
||||
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);
|
||||
|
|
|
@ -1111,7 +1111,7 @@ namespace OpenTK
|
|||
/// <param name="result">The result of the operation.</param>
|
||||
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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#region --- License ---
|
||||
#region --- License ---
|
||||
/*
|
||||
Copyright (c) 2006 - 2008 The Open Toolkit library.
|
||||
|
||||
|
@ -963,7 +963,7 @@ namespace OpenTK
|
|||
/// <param name="result">The result of the operation.</param>
|
||||
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);
|
||||
|
|
|
@ -966,7 +966,7 @@ namespace OpenTK
|
|||
/// <param name="result">The result of the operation.</param>
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue