From ef71a1ed38785402697bc77e6ca27fe7fdb7b25f Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Tue, 20 Jun 2017 15:18:51 +0200 Subject: [PATCH] Removed obsolete property. --- src/OpenTK/Math/Quaterniond.cs | 43 ++++++++++++---------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/src/OpenTK/Math/Quaterniond.cs b/src/OpenTK/Math/Quaterniond.cs index 08636e23..d6bd5a17 100644 --- a/src/OpenTK/Math/Quaterniond.cs +++ b/src/OpenTK/Math/Quaterniond.cs @@ -45,7 +45,7 @@ namespace OpenTK /// /// The W component of this instance. - /// + /// public double W; #endregion @@ -113,19 +113,6 @@ namespace OpenTK #region Properties - #pragma warning disable 3005 // Identifier differing only in case is not CLS-compliant, compiler bug in Mono 3.4.0 - - /// - /// Gets or sets an OpenTK.Vector3d with the X, Y and Z components of this instance. - /// - [Obsolete("Use Xyz property instead.")] - [CLSCompliant(false)] - [EditorBrowsable(EditorBrowsableState.Never)] - [XmlIgnore] - public Vector3d XYZ { get { return Xyz; } set { Xyz = value; } } - - #pragma warning restore 3005 - /// /// Gets or sets the X component of this instance. /// @@ -143,7 +130,7 @@ namespace OpenTK /// [XmlIgnore] public double Z { get { return Xyz.Z; } set { Xyz.Z = value; } } - + #endregion #region Instance @@ -182,7 +169,7 @@ namespace OpenTK } else { - // This occurs when the angle is zero. + // This occurs when the angle is zero. // Not a problem: just set an arbitrary normalized axis. result.Xyz = Vector3d.UnitX; } @@ -662,7 +649,7 @@ namespace OpenTK #region Slerp /// - /// Do Spherical linear interpolation between two quaternions + /// Do Spherical linear interpolation between two quaternions /// /// The first Quaterniond /// The second Quaterniond @@ -727,7 +714,7 @@ namespace OpenTK #endregion #endregion - + #region Operators /// @@ -833,7 +820,7 @@ namespace OpenTK #region public override bool Equals (object o) /// - /// Compares this object instance to another object for equality. + /// Compares this object instance to another object for equality. /// /// The other object to be used in the comparison. /// True if both objects are Quaternions of equal value. Otherwise it returns false. @@ -848,7 +835,7 @@ namespace OpenTK #region public override int GetHashCode () /// - /// Provides the hash code for this object. + /// Provides the hash code for this object. /// /// A hash code formed from the bitwise XOR of this objects members. @@ -883,7 +870,7 @@ namespace OpenTK public double Z; #endregion - + #region Constructors /// Constructs left Quaterniond that is left copy of the given Quaterniond. @@ -942,11 +929,11 @@ namespace OpenTK public Quaterniond(ref Matrix4d matrix) { double scale = System.Math.Pow(matrix.Determinant, 1.0d/3.0d); - + W = System.Math.Sqrt(System.Math.Max(0, scale + matrix[0, 0] + matrix[1, 1] + matrix[2, 2])) / 2; X = System.Math.Sqrt(System.Math.Max(0, scale + matrix[0, 0] - matrix[1, 1] - matrix[2, 2])) / 2; Y = System.Math.Sqrt(System.Math.Max(0, scale - matrix[0, 0] + matrix[1, 1] - matrix[2, 2])) / 2; - Z = System.Math.Sqrt(System.Math.Max(0, scale - matrix[0, 0] - matrix[1, 1] + matrix[2, 2])) / 2; + Z = System.Math.Sqrt(System.Math.Max(0, scale - matrix[0, 0] - matrix[1, 1] + matrix[2, 2])) / 2; if( matrix[2,1] - matrix[1,2] < 0 ) X = -X; if( matrix[0,2] - matrix[2,0] < 0 ) Y = -Y; if( matrix[1,0] - matrix[0,1] < 0 ) Z = -Z; @@ -1086,7 +1073,7 @@ namespace OpenTK } #endregion - + #region Functions public double Modulus @@ -1429,7 +1416,7 @@ namespace OpenTK } #endregion - + #region HashCode /// Returns the hash code for this instance. @@ -1441,7 +1428,7 @@ namespace OpenTK } #endregion - + #region String and Parse /// Returns the fully qualified type name of this instance. @@ -1466,7 +1453,7 @@ namespace OpenTK } #endregion - + #region Constants /// A quaterion with all zero components. @@ -1494,7 +1481,7 @@ namespace OpenTK #region IEquatable Members /// - /// Compares this Quaterniond instance to another Quaterniond for equality. + /// Compares this Quaterniond instance to another Quaterniond for equality. /// /// The other Quaterniond to be used in the comparison. /// True if both instances are equal; false otherwise.