From f2c91d4a7cf86eea04cd4de71b2413964790b299 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 6 Oct 2009 09:45:09 +0000 Subject: [PATCH] Obsoleted Scale() instance method (reason: redundant. Mult()/Multiply() instance/static methods can be used to achieve the same effect). --- Source/OpenTK/Math/Vector2.cs | 3 +++ Source/OpenTK/Math/Vector2d.cs | 3 +++ Source/OpenTK/Math/Vector3.cs | 3 +++ Source/OpenTK/Math/Vector3d.cs | 3 +++ Source/OpenTK/Math/Vector4.cs | 3 +++ Source/OpenTK/Math/Vector4d.cs | 3 +++ 6 files changed, 18 insertions(+) diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs index dcf492fe..396c5166 100644 --- a/Source/OpenTK/Math/Vector2.cs +++ b/Source/OpenTK/Math/Vector2.cs @@ -297,6 +297,7 @@ namespace OpenTK /// /// The scale of the X component. /// The scale of the Y component. + [Obsolete("Use static Multiply() method instead.")] public void Scale(float sx, float sy) { this.X = X * sx; @@ -305,6 +306,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. + [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector2 scale) { this.X *= scale.X; @@ -314,6 +316,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. [CLSCompliant(false)] + [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector2 scale) { this.X *= scale.X; diff --git a/Source/OpenTK/Math/Vector2d.cs b/Source/OpenTK/Math/Vector2d.cs index 51cdd719..1e48dfe6 100644 --- a/Source/OpenTK/Math/Vector2d.cs +++ b/Source/OpenTK/Math/Vector2d.cs @@ -244,6 +244,7 @@ namespace OpenTK /// /// The scale of the X component. /// The scale of the Y component. + [Obsolete("Use static Multiply() method instead.")] public void Scale(double sx, double sy) { X *= sx; @@ -252,6 +253,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. + [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector2d scale) { this.X *= scale.X; @@ -261,6 +263,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. [CLSCompliant(false)] + [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector2d scale) { this.X *= scale.X; diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index fe6f55e1..be0f4842 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -286,6 +286,7 @@ namespace OpenTK /// The scale of the X component. /// The scale of the Y component. /// The scale of the Z component. + [Obsolete("Use static Multiply() method instead.")] public void Scale(float sx, float sy, float sz) { this.X = X * sx; @@ -295,6 +296,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. + [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector3 scale) { this.X *= scale.X; @@ -305,6 +307,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. [CLSCompliant(false)] + [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector3 scale) { this.X *= scale.X; diff --git a/Source/OpenTK/Math/Vector3d.cs b/Source/OpenTK/Math/Vector3d.cs index 7ba673b7..86232371 100644 --- a/Source/OpenTK/Math/Vector3d.cs +++ b/Source/OpenTK/Math/Vector3d.cs @@ -285,6 +285,7 @@ namespace OpenTK /// The scale of the X component. /// The scale of the Y component. /// The scale of the Z component. + [Obsolete("Use static Multiply() method instead.")] public void Scale(double sx, double sy, double sz) { this.X = X * sx; @@ -294,6 +295,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. + [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector3d scale) { this.X *= scale.X; @@ -304,6 +306,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. [CLSCompliant(false)] + [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector3d scale) { this.X *= scale.X; diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs index 8191d99a..a8295b4e 100644 --- a/Source/OpenTK/Math/Vector4.cs +++ b/Source/OpenTK/Math/Vector4.cs @@ -351,6 +351,7 @@ namespace OpenTK /// The scale of the Y component. /// The scale of the Z component. /// The scale of the Z component. + [Obsolete("Use static Multiply() method instead.")] public void Scale(float sx, float sy, float sz, float sw) { this.X = X * sx; @@ -361,6 +362,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. + [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector4 scale) { this.X *= scale.X; @@ -372,6 +374,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. [CLSCompliant(false)] + [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector4 scale) { this.X *= scale.X; diff --git a/Source/OpenTK/Math/Vector4d.cs b/Source/OpenTK/Math/Vector4d.cs index ee018da8..5264844f 100644 --- a/Source/OpenTK/Math/Vector4d.cs +++ b/Source/OpenTK/Math/Vector4d.cs @@ -348,6 +348,7 @@ namespace OpenTK /// The scale of the Y component. /// The scale of the Z component. /// The scale of the Z component. + [Obsolete("Use static Multiply() method instead.")] public void Scale(double sx, double sy, double sz, double sw) { this.X = X * sx; @@ -358,6 +359,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. + [Obsolete("Use static Multiply() method instead.")] public void Scale(Vector4d scale) { this.X *= scale.X; @@ -369,6 +371,7 @@ namespace OpenTK /// Scales this instance by the given parameter. /// The scaling of the individual components. [CLSCompliant(false)] + [Obsolete("Use static Multiply() method instead.")] public void Scale(ref Vector4d scale) { this.X *= scale.X;