diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-01-01 16:00:35 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-01-01 16:00:35 +0000 |
commit | c0d05b1ad0f2d82f9ce94437370648e7dfdd994e (patch) | |
tree | 47883cae257d6801bc8d9bfc2924ba2b323bdb27 /game | |
parent | Walk terrain along a curve - edge cases exist (diff) | |
download | ilt-c0d05b1ad0f2d82f9ce94437370648e7dfdd994e.tar.bz2 ilt-c0d05b1ad0f2d82f9ce94437370648e7dfdd994e.tar.xz ilt-c0d05b1ad0f2d82f9ce94437370648e7dfdd994e.zip |
Return angle of intersection of arc with line
Diffstat (limited to 'game')
-rw-r--r-- | game/geoData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp index 37abc4c..45e6590 100644 --- a/game/geoData.cpp +++ b/game/geoData.cpp @@ -324,7 +324,7 @@ GeoData::walkUntil(const PointFace & from, GlobalPosition2D to, GlobalPosition2D const auto e2 = point(to_vertex_handle(opposite_halfedge_handle(next))); if (const auto intersect = arc.crossesLineAt(e1, e2)) { step.exitHalfedge = next; - step.exitPosition = intersect.value(); + step.exitPosition = intersect.value().first; break; } } |