mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 15:35:34 +00:00
Marked OpenTK.Compatibility math functions as obsolete.
This commit is contained in:
parent
380b57781b
commit
b21e0efa71
|
@ -17,6 +17,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a bezier curve with as many points as you want.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
public struct BezierCurve
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a cubic bezier curve with two anchor and two control points.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
public struct BezierCurveCubic
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a quadric bezier curve with two anchor and one control point.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
public struct BezierCurveQuadric
|
||||
{
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Defines a 2d box (rectangle).
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Box2
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Contains mathematical functions for the OpenTK.Math toolkit.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
public static class Functions
|
||||
{
|
||||
#region public static long NextPowerOfTwo(long n)
|
||||
|
|
|
@ -75,6 +75,7 @@ namespace OpenTK.Math
|
|||
/// but must not lead to GL interruption or termination. Providing a denormalized number or negative zero to GL must yield
|
||||
/// predictable results.
|
||||
/// </remarks>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable, StructLayout(LayoutKind.Sequential)]
|
||||
public struct Half : ISerializable, IComparable<Half>, IFormattable, IEquatable<Half>
|
||||
{
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace OpenTK.Math
|
|||
// Todo: Remove this warning when the code goes public.
|
||||
#pragma warning disable 3019
|
||||
#if false
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Matrix3d : IEquatable<Matrix3d>
|
||||
|
@ -219,7 +220,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
#region Constructors
|
||||
|
||||
/// <summary>Constructs left matrix with the same components as the given matrix.</summary>
|
||||
/// <param name="vector">The matrix whose components to copy.</param>
|
||||
|
@ -318,7 +319,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region Equality
|
||||
#region Equality
|
||||
|
||||
/// <summary>Indicates whether the current matrix is equal to another matrix.</summary>
|
||||
/// <param name="matrix">The OpenTK.Matrix3d structure to compare with.</param>
|
||||
|
@ -412,7 +413,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region Arithmetic Operators
|
||||
#region Arithmetic Operators
|
||||
|
||||
|
||||
/// <summary>Add left matrix to this matrix.</summary>
|
||||
|
@ -624,7 +625,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region Functions
|
||||
#region Functions
|
||||
|
||||
public double Determinant
|
||||
{
|
||||
|
@ -667,7 +668,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region Transformation Functions
|
||||
#region Transformation Functions
|
||||
|
||||
public void Transform(ref Vector3d vector)
|
||||
{
|
||||
|
@ -772,7 +773,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region Constants
|
||||
#region Constants
|
||||
|
||||
/// <summary>The identity matrix.</summary>
|
||||
public static readonly Matrix3d Identity = new Matrix3d
|
||||
|
@ -792,7 +793,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region HashCode
|
||||
#region HashCode
|
||||
|
||||
/// <summary>Returns the hash code for this instance.</summary>
|
||||
/// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
|
||||
|
@ -806,7 +807,7 @@ namespace OpenTK.Math
|
|||
|
||||
#endregion
|
||||
|
||||
#region String
|
||||
#region String
|
||||
|
||||
/// <summary>Returns the fully qualified type name of this instance.</summary>
|
||||
/// <returns>A System.String containing left fully qualified type name.</returns>
|
||||
|
@ -824,5 +825,5 @@ namespace OpenTK.Math
|
|||
#endregion
|
||||
}
|
||||
#endif
|
||||
#pragma warning restore 3019
|
||||
#pragma warning restore 3019
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a 4x4 Matrix
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Matrix4 : IEquatable<Matrix4>
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a 4x4 Matrix with double-precision components.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Matrix4d : IEquatable<Matrix4d>
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a Quaternion.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Quaternion : IEquatable<Quaternion>
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a double-precision Quaternion.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Quaterniond : IEquatable<Quaterniond>
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace OpenTK.Math
|
|||
/// <remarks>
|
||||
/// The Vector2 structure is suitable for interoperation with unmanaged code requiring two consecutive floats.
|
||||
/// </remarks>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector2 : IEquatable<Vector2>
|
||||
|
|
|
@ -28,6 +28,7 @@ using System.Runtime.InteropServices;
|
|||
namespace OpenTK.Math
|
||||
{
|
||||
/// <summary>Represents a 2D vector using two double-precision floating-point numbers.</summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector2d : IEquatable<Vector2d>
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace OpenTK.Math
|
|||
{
|
||||
|
||||
/// <summary>2-component Vector of the Half type. Occupies 4 Byte total.</summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable, StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector2h : ISerializable, IEquatable<Vector2h>
|
||||
{
|
||||
|
|
|
@ -34,6 +34,7 @@ namespace OpenTK.Math
|
|||
/// <remarks>
|
||||
/// The Vector3 structure is suitable for interoperation with unmanaged code requiring three consecutive floats.
|
||||
/// </remarks>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector3 : IEquatable<Vector3>
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// Represents a 3D vector using three double-precision floating-point numbers.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector3d : IEquatable<Vector3d>
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// 3-component Vector of the Half type. Occupies 6 Byte total.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable, StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector3h : ISerializable, IEquatable<Vector3h>
|
||||
{
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace OpenTK.Math
|
|||
/// <remarks>
|
||||
/// The Vector4 structure is suitable for interoperation with unmanaged code requiring four consecutive floats.
|
||||
/// </remarks>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector4 : IEquatable<Vector4>
|
||||
|
|
|
@ -29,6 +29,7 @@ using System.Xml.Serialization;
|
|||
namespace OpenTK.Math
|
||||
{
|
||||
/// <summary>Represents a 4D vector using four double-precision floating-point numbers.</summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector4d : IEquatable<Vector4d>
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace OpenTK.Math
|
|||
/// <summary>
|
||||
/// 4-component Vector of the Half type. Occupies 8 Byte total.
|
||||
/// </summary>
|
||||
[Obsolete("OpenTK.Math functions have been moved to the root OpenTK namespace (reason: XNA compatibility")]
|
||||
[Serializable, StructLayout(LayoutKind.Sequential)]
|
||||
public struct Vector4h : ISerializable, IEquatable<Vector4h>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue