Refactor engine to support double-precision vectors

This commit is contained in:
Wojtek Figat
2022-06-13 00:40:32 +02:00
parent f82e370392
commit a881c90b2e
744 changed files with 19062 additions and 12467 deletions

View File

@@ -66,7 +66,7 @@ namespace FlaxEngine.GUI
}
/// <inheritdoc />
public Image(Vector2 location, Vector2 size)
public Image(Float2 location, Float2 size)
: base(location, size)
{
AutoFocus = false;
@@ -109,7 +109,7 @@ namespace FlaxEngine.GUI
}
else
{
rect = new Rectangle(Vector2.Zero, Size);
rect = new Rectangle(Float2.Zero, Size);
}
Margin.ShrinkRectangle(ref rect);
@@ -121,7 +121,7 @@ namespace FlaxEngine.GUI
}
/// <inheritdoc />
public override bool OnMouseUp(Vector2 location, MouseButton button)
public override bool OnMouseUp(Float2 location, MouseButton button)
{
if (base.OnMouseUp(location, button))
return true;