Fixed cast issues with Math.Sqrt.

This commit is contained in:
the_fiddler 2007-09-24 20:56:17 +00:00
parent d39787c9de
commit 27d8c47403

View file

@ -195,7 +195,7 @@ namespace OpenTK.Math
{ {
get get
{ {
return System.Math.Sqrt(this.LengthSquared); return (float)System.Math.Sqrt(this.LengthSquared);
} }
} }
@ -228,7 +228,7 @@ namespace OpenTK.Math
/// <returns>A new, scaled Vector2.</returns> /// <returns>A new, scaled Vector2.</returns>
public Vector2 Scale(float sx, float sy) public Vector2 Scale(float sx, float sy)
{ {
return new Vector2(X * x, Y * y); return new Vector2(X * sx, Y * sy);
} }
} }
} }