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); } } }