Rotate dual terrain arcs
This commit is contained in:
@@ -249,17 +249,17 @@ public sealed partial class MainWindow
|
|||||||
var radiusX = (float)rect.Width / 2;
|
var radiusX = (float)rect.Width / 2;
|
||||||
var radiusY = (float)rect.Height / 2;
|
var radiusY = (float)rect.Height / 2;
|
||||||
var start = corner switch {
|
var start = corner switch {
|
||||||
c_TopLeftFloor => new Vector2(center.X, (float)rect.Y),
|
c_TopLeftFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
|
||||||
c_TopRightFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
|
c_TopRightFloor => new Vector2((float)rect.X, center.Y),
|
||||||
c_BottomRightFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
|
c_BottomRightFloor => new Vector2(center.X, (float)rect.Y),
|
||||||
c_BottomLeftFloor => new Vector2((float)rect.X, center.Y),
|
c_BottomLeftFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
|
||||||
_ => center
|
_ => center
|
||||||
};
|
};
|
||||||
var end = corner switch {
|
var end = corner switch {
|
||||||
c_TopLeftFloor => new Vector2((float)rect.X, center.Y),
|
c_TopLeftFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
|
||||||
c_TopRightFloor => new Vector2(center.X, (float)rect.Y),
|
c_TopRightFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
|
||||||
c_BottomRightFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
|
c_BottomRightFloor => new Vector2((float)rect.X, center.Y),
|
||||||
c_BottomLeftFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
|
c_BottomLeftFloor => new Vector2(center.X, (float)rect.Y),
|
||||||
_ => center
|
_ => center
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user