mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 18:11:08 +00:00
Fixed cast issues with Math.Sqrt.
This commit is contained in:
parent
e9fc2c7134
commit
c8fa8a7b93
|
@ -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
|
|||
/// <returns>A new, scaled Vector2.</returns>
|
||||
public Vector2 Scale(float sx, float sy)
|
||||
{
|
||||
return new Vector2(X * x, Y * y);
|
||||
return new Vector2(X * sx, Y * sy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue