mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-01-19 05:28:27 +08:00
Rect.MirrorX/Y fixes
This commit is contained in:
parent
08c117f0dc
commit
b16f9ae8ba
@ -93,14 +93,14 @@ namespace Strawberry
|
||||
public Rect MirrorX(int axis = 0)
|
||||
{
|
||||
var rect = this;
|
||||
rect.X = axis - X - Width;
|
||||
rect.X = axis - (X - axis) - Width;
|
||||
return rect;
|
||||
}
|
||||
|
||||
public Rect MirrorY(int axis = 0)
|
||||
{
|
||||
var rect = this;
|
||||
rect.Y = axis - Y - Height;
|
||||
rect.Y = axis - (Y - axis) - Height;
|
||||
return rect;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user