mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-18 05:20:22 +00:00
Fixed cast issues with Math.Sqrt.
This commit is contained in:
parent
d39787c9de
commit
27d8c47403
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue