From cf40f6d96f811dddcfe5b0c51c313e07848bff4c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 4 Jan 2022 00:36:30 +0000 Subject: Extracting finding a surround geo quad into separate function --- game/geoData.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'game/geoData.h') diff --git a/game/geoData.h b/game/geoData.h index e5057c3..ffb7d64 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -11,6 +11,7 @@ public: struct Node { float height {-1.5F}; }; + using Quad = std::array; using Limits = std::pair; @@ -24,6 +25,7 @@ public: [[nodiscard]] unsigned int at(glm::ivec2) const; [[nodiscard]] unsigned int at(int x, int y) const; + [[nodiscard]] Quad quad(glm::vec2) const; [[nodiscard]] Limits getLimit() const; [[nodiscard]] glm::uvec2 getSize() const; -- cgit v1.2.3