summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-04 00:36:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-04 00:36:30 +0000
commitcf40f6d96f811dddcfe5b0c51c313e07848bff4c (patch)
treee6a49faa859579b6a119c29009ee90597c9c4382 /game/geoData.h
parentUse a test fixture suite over repeated fixture case (diff)
downloadilt-cf40f6d96f811dddcfe5b0c51c313e07848bff4c.tar.bz2
ilt-cf40f6d96f811dddcfe5b0c51c313e07848bff4c.tar.xz
ilt-cf40f6d96f811dddcfe5b0c51c313e07848bff4c.zip
Extracting finding a surround geo quad into separate function
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h2
1 files changed, 2 insertions, 0 deletions
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<glm::vec3, 4>;
using Limits = std::pair<glm::ivec2, glm::ivec2>;
@@ -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;