Rotate dual terrain arcs

This commit is contained in:
2026-05-08 22:20:26 +02:00
parent 5838214b36
commit 15fb522ac6

View File

@@ -249,17 +249,17 @@ public sealed partial class MainWindow
var radiusX = (float)rect.Width / 2;
var radiusY = (float)rect.Height / 2;
var start = corner switch {
c_TopLeftFloor => new Vector2(center.X, (float)rect.Y),
c_TopRightFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
c_BottomRightFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
c_BottomLeftFloor => new Vector2((float)rect.X, center.Y),
c_TopLeftFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
c_TopRightFloor => new Vector2((float)rect.X, center.Y),
c_BottomRightFloor => new Vector2(center.X, (float)rect.Y),
c_BottomLeftFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
_ => center
};
var end = corner switch {
c_TopLeftFloor => new Vector2((float)rect.X, center.Y),
c_TopRightFloor => new Vector2(center.X, (float)rect.Y),
c_BottomRightFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
c_BottomLeftFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
c_TopLeftFloor => new Vector2((float)(rect.X + rect.Width), center.Y),
c_TopRightFloor => new Vector2(center.X, (float)(rect.Y + rect.Height)),
c_BottomRightFloor => new Vector2((float)rect.X, center.Y),
c_BottomLeftFloor => new Vector2(center.X, (float)rect.Y),
_ => center
};