mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Refactor isQuadInBounds
This commit is contained in:
parent
71b30bdbbb
commit
2a4139a207
@ -242,12 +242,10 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
private (bool X, bool Y) isQuadInBounds(Quad quad)
|
||||
{
|
||||
(bool X, bool Y) result;
|
||||
bool xInBounds = (quad.TopLeft.X >= 0) && (quad.BottomRight.X < DrawWidth);
|
||||
bool yInBounds = (quad.TopLeft.Y >= 0) && (quad.BottomRight.Y < DrawHeight);
|
||||
|
||||
result.X = (quad.TopLeft.X >= 0) && (quad.BottomRight.X < DrawWidth);
|
||||
result.Y = (quad.TopLeft.Y >= 0) && (quad.BottomRight.Y < DrawHeight);
|
||||
|
||||
return result;
|
||||
return (xInBounds, yInBounds);
|
||||
}
|
||||
|
||||
private void moveSelectionInBounds()
|
||||
|
Loading…
Reference in New Issue
Block a user