diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-01-01 12:53:43 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-01-01 13:31:12 +0000 |
commit | ca3736b3a896557536c0aa4c0cee1f156e118b54 (patch) | |
tree | f1437deedb78992ec80f1c96539e3d3865b3a78c /game/geoData.h | |
parent | Add ArcSegment (diff) | |
download | ilt-ca3736b3a896557536c0aa4c0cee1f156e118b54.tar.bz2 ilt-ca3736b3a896557536c0aa4c0cee1f156e118b54.tar.xz ilt-ca3736b3a896557536c0aa4c0cee1f156e118b54.zip |
Walk terrain along a curve - edge cases exist
Diffstat (limited to 'game/geoData.h')
-rw-r--r-- | game/geoData.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/game/geoData.h b/game/geoData.h index 68ce9a2..e3fc313 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -74,8 +74,10 @@ public: template<typename T> using Consumer = const std::function<void(const T &)> &; template<typename T> using Tester = const std::function<bool(const T &)> &; - void walk(const PointFace & from, const GlobalPosition2D to, Consumer<WalkStep> op) const; - void walkUntil(const PointFace & from, const GlobalPosition2D to, Tester<WalkStep> op) const; + void walk(const PointFace & from, GlobalPosition2D to, Consumer<WalkStep> op) const; + void walkUntil(const PointFace & from, GlobalPosition2D to, Tester<WalkStep> op) const; + void walk(const PointFace & from, GlobalPosition2D to, GlobalPosition2D centre, Consumer<WalkStep> op) const; + void walkUntil(const PointFace & from, GlobalPosition2D to, GlobalPosition2D centre, Tester<WalkStep> op) const; void boundaryWalk(Consumer<HalfedgeHandle>) const; void boundaryWalk(Consumer<HalfedgeHandle>, HalfedgeHandle start) const; |