diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-10-31 02:40:03 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-10-31 02:40:03 +0000 |
commit | a4f1c55ad34f6be9adc9573fd7f26507ae2c59b0 (patch) | |
tree | 3c326fd8196ac87254bfa5fb4290a0f1a8142909 /game/terrain2.h | |
parent | Helper type for storing/passing/returning a point and its containing face (diff) | |
download | ilt-a4f1c55ad34f6be9adc9573fd7f26507ae2c59b0.tar.bz2 ilt-a4f1c55ad34f6be9adc9573fd7f26507ae2c59b0.tar.xz ilt-a4f1c55ad34f6be9adc9573fd7f26507ae2c59b0.zip |
Update walk/walkUntil to work on PointFace from parameter
Diffstat (limited to 'game/terrain2.h')
-rw-r--r-- | game/terrain2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/terrain2.h b/game/terrain2.h index e516719..1a4e263 100644 --- a/game/terrain2.h +++ b/game/terrain2.h @@ -28,8 +28,8 @@ public: [[nodiscard]] FaceHandle findPoint(glm::vec2) const; [[nodiscard]] FaceHandle findPoint(glm::vec2, FaceHandle start) const; - void walk(const glm::vec2 from, const glm::vec2 to, const std::function<void(FaceHandle)> & op) const; - void walkUntil(const glm::vec2 from, const glm::vec2 to, const std::function<bool(FaceHandle)> & op) const; + void walk(const PointFace & from, const glm::vec2 to, const std::function<void(FaceHandle)> & op) const; + void walkUntil(const PointFace & from, const glm::vec2 to, const std::function<bool(FaceHandle)> & op) const; protected: [[nodiscard]] static bool triangleContainsPoint(const glm::vec2, const glm::vec2, const glm::vec2, const glm::vec2); |