Eliminated cls-compliance warnings in the math library
authorStefanos A <stapostol@gmail.com>
Sun, 15 Dec 2013 21:02:08 +0000 (22:02 +0100)
committerStefanos A <stapostol@gmail.com>
Sun, 15 Dec 2013 21:02:08 +0000 (22:02 +0100)
Source/OpenTK/Math/Quaternion.cs
Source/OpenTK/Math/Vector2.cs
Source/OpenTK/Math/Vector2d.cs
Source/OpenTK/Math/Vector2h.cs
Source/OpenTK/Math/Vector3.cs
Source/OpenTK/Math/Vector3d.cs
Source/OpenTK/Math/Vector3h.cs
Source/OpenTK/Math/Vector4.cs
Source/OpenTK/Math/Vector4d.cs
Source/OpenTK/Math/Vector4h.cs

index 5913e1dd987caa305bf5f3a0bf66016a06f91e46..1334ea09a2da8960da3821a1f45e24e9580719b0 100644 (file)
@@ -77,14 +77,15 @@ namespace OpenTK
         /// Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.
         /// </summary>
         [Obsolete("Use Xyz property instead.")]
-        [CLSCompliant(false)]
         [EditorBrowsable(EditorBrowsableState.Never)]
         [XmlIgnore]
+        [CLSCompliant(false)]
         public Vector3 XYZ { get { return Xyz; } set { Xyz = value; } }
 
         /// <summary>
         /// Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance.
         /// </summary>
+        [CLSCompliant(false)]
         public Vector3 Xyz { get { return xyz; } set { xyz = value; } }
 
         /// <summary>
index 1ccc885e3625b5ea345565ac4f37cd3c3e2a26d8..e4bb0dcfcface6040ce0d36d539a0e6b999c4d0f 100644 (file)
@@ -131,6 +131,7 @@ namespace OpenTK
 
         /// <summary>Add the Vector passed as parameter to this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Add() method instead.")]
         public void Add(Vector2 right)
         {
@@ -154,6 +155,7 @@ namespace OpenTK
 
         /// <summary>Subtract the Vector passed as parameter from this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Subtract() method instead.")]
         public void Sub(Vector2 right)
         {
@@ -343,6 +345,7 @@ namespace OpenTK
 
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Multiply() method instead.")]
         public void Scale(Vector2 scale)
         {
index 76140079f22895db034f33437dabdcb1d43136f2..4b772b9c3a090221000fa709dc0b6d6d7b87b482 100644 (file)
@@ -114,6 +114,7 @@ namespace OpenTK
 
         /// <summary>Add the Vector passed as parameter to this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Add() method instead.")]
         public void Add(Vector2d right)
         {
@@ -137,6 +138,7 @@ namespace OpenTK
 
         /// <summary>Subtract the Vector passed as parameter from this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Subtract() method instead.")]
         public void Sub(Vector2d right)
         {
@@ -290,6 +292,7 @@ namespace OpenTK
 
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Multiply() method instead.")]
         public void Scale(Vector2d scale)
         {
index 57ab67adb0c8ee98ce0846e4446cf82b8f0a9b72..85ec2805d626c2b254dc41dd0b5c0fa49fb8a610 100644 (file)
@@ -150,6 +150,7 @@ namespace OpenTK
         /// The new Half2 instance will convert the Vector2d into 16-bit half-precision floating-point.
         /// </summary>
         /// <param name="v">OpenTK.Vector2d</param>
+        [CLSCompliant(false)]
         public Vector2h(Vector2d v)
         {
             X = new Half(v.X);
@@ -161,6 +162,7 @@ namespace OpenTK
         /// </summary>
         /// <param name="v">OpenTK.Vector2d</param>
         /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
+        [CLSCompliant(false)]
         public Vector2h(Vector2d v, bool throwOnError)
         {
             X = new Half(v.X, throwOnError);
index 8ec3565df623bb3e16582acc3cb723f6d924bb65..d5d2d39dd25bec3c5f53918a64e0feeb3d86ceb6 100644 (file)
@@ -143,6 +143,7 @@ namespace OpenTK
 
         /// <summary>Add the Vector passed as parameter to this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Add() method instead.")]
         public void Add(Vector3 right)
         {
@@ -168,6 +169,7 @@ namespace OpenTK
 
         /// <summary>Subtract the Vector passed as parameter from this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Subtract() method instead.")]
         public void Sub(Vector3 right)
         {
@@ -335,6 +337,7 @@ namespace OpenTK
 
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Multiply() method instead.")]
         public void Scale(Vector3 scale)
         {
index 70acdb88d83b3b413f6de232ba1b9eca75a38895..df707c0018baeadc0d2c72a76ccffa1f07fe913b 100644 (file)
@@ -141,6 +141,7 @@ namespace OpenTK
 
         /// <summary>Add the Vector passed as parameter to this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Add() method instead.")]
         public void Add(Vector3d right)
         {
@@ -166,6 +167,7 @@ namespace OpenTK
 
         /// <summary>Subtract the Vector passed as parameter from this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Subtract() method instead.")]
         public void Sub(Vector3d right)
         {
@@ -335,6 +337,7 @@ namespace OpenTK
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
         [Obsolete("Use static Multiply() method instead.")]
+        [CLSCompliant(false)]
         public void Scale(Vector3d scale)
         {
             this.X *= scale.X;
@@ -344,8 +347,8 @@ namespace OpenTK
 
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
-        [CLSCompliant(false)]
         [Obsolete("Use static Multiply() method instead.")]
+        [CLSCompliant(false)]
         public void Scale(ref Vector3d scale)
         {
             this.X *= scale.X;
index ec910cdc46242294680fdbfb3798ea97098c75da..52945c6da3d6fab98cc59174757981284f01e226 100644 (file)
@@ -155,6 +155,7 @@ namespace OpenTK
         /// </summary>
         /// <param name="v">OpenTK.Vector3</param>
         /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
+        [CLSCompliant(false)]
         public Vector3h(ref Vector3 v, bool throwOnError)
         {
             X = new Half(v.X, throwOnError);
@@ -166,6 +167,7 @@ namespace OpenTK
         /// The new Half3 instance will convert the Vector3d into 16-bit half-precision floating-point.
         /// </summary>
         /// <param name="v">OpenTK.Vector3d</param>
+        [CLSCompliant(false)]
         public Vector3h(Vector3d v)
         {
             X = new Half(v.X);
@@ -178,6 +180,7 @@ namespace OpenTK
         /// </summary>
         /// <param name="v">OpenTK.Vector3d</param>
         /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
+        [CLSCompliant(false)]
         public Vector3h(Vector3d v, bool throwOnError)
         {
             X = new Half(v.X, throwOnError);
index 5cb57992c8fbde1be651dd683d672664776349ca..b0e6b1fd52c2fc129a9ccbae7f71cb7d832764e9 100644 (file)
@@ -203,6 +203,7 @@ namespace OpenTK
 
         /// <summary>Add the Vector passed as parameter to this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Add() method instead.")]
         public void Add(Vector4 right)
         {
@@ -230,6 +231,7 @@ namespace OpenTK
 
         /// <summary>Subtract the Vector passed as parameter from this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Subtract() method instead.")]
         public void Sub(Vector4 right)
         {
@@ -405,6 +407,7 @@ namespace OpenTK
 
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Multiply() method instead.")]
         public void Scale(Vector4 scale)
         {
index 6389e48b2bec6364fbdf8f6d3d0ce380af2a28a4..c7d0c0e36706c604ad9c2710704e0498ce654018 100644 (file)
@@ -201,6 +201,7 @@ namespace OpenTK
 
         /// <summary>Add the Vector passed as parameter to this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Add() method instead.")]
         public void Add(Vector4d right)
         {
@@ -228,6 +229,7 @@ namespace OpenTK
 
         /// <summary>Subtract the Vector passed as parameter from this instance.</summary>
         /// <param name="right">Right operand. This parameter is only read from.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Subtract() method instead.")]
         public void Sub(Vector4d right)
         {
@@ -402,6 +404,7 @@ namespace OpenTK
 
         /// <summary>Scales this instance by the given parameter.</summary>
         /// <param name="scale">The scaling of the individual components.</param>
+        [CLSCompliant(false)]
         [Obsolete("Use static Multiply() method instead.")]
         public void Scale(Vector4d scale)
         {
index 26e547fba1316bd6b0ea04db96b8fe8030642a5f..d9499f73ec0cee2ca863e441fe72b1bec1b38e22 100644 (file)
@@ -181,6 +181,7 @@ namespace OpenTK
         /// The new Half4 instance will convert the Vector4d into 16-bit half-precision floating-point.
         /// </summary>
         /// <param name="v">OpenTK.Vector4d</param>
+        [CLSCompliant(false)]
         public Vector4h(Vector4d v)
         {
             X = new Half(v.X);
@@ -194,6 +195,7 @@ namespace OpenTK
         /// </summary>
         /// <param name="v">OpenTK.Vector4d</param>
         /// <param name="throwOnError">Enable checks that will throw if the conversion result is not meaningful.</param>
+        [CLSCompliant(false)]
         public Vector4h(Vector4d v, bool throwOnError)
         {
             X = new Half(v.X, throwOnError);