From c8fa8a7b932592031aefcddfba8af812684b0e87 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 24 Sep 2007 20:56:17 +0000 Subject: [PATCH] Fixed cast issues with Math.Sqrt. --- Source/OpenTK/Math/Vector2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs index 9ab160ee..35a96c48 100644 --- a/Source/OpenTK/Math/Vector2.cs +++ b/Source/OpenTK/Math/Vector2.cs @@ -195,7 +195,7 @@ namespace OpenTK.Math { get { - return System.Math.Sqrt(this.LengthSquared); + return (float)System.Math.Sqrt(this.LengthSquared); } } @@ -228,7 +228,7 @@ namespace OpenTK.Math /// A new, scaled Vector2. public Vector2 Scale(float sx, float sy) { - return new Vector2(X * x, Y * y); + return new Vector2(X * sx, Y * sy); } } }