mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-04-12 03:16:05 +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)
|
public Rect MirrorX(int axis = 0)
|
||||||
{
|
{
|
||||||
var rect = this;
|
var rect = this;
|
||||||
rect.X = axis - X - Width;
|
rect.X = axis - (X - axis) - Width;
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Rect MirrorY(int axis = 0)
|
public Rect MirrorY(int axis = 0)
|
||||||
{
|
{
|
||||||
var rect = this;
|
var rect = this;
|
||||||
rect.Y = axis - Y - Height;
|
rect.Y = axis - (Y - axis) - Height;
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user