summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/game/geoData.h b/game/geoData.h
index ffb7d64..7bd6ae5 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -32,6 +32,19 @@ public:
[[nodiscard]] float getScale() const;
[[nodiscard]] std::span<const Node> getNodes() const;
+ class RayTracer {
+ public:
+ RayTracer(glm::vec2 p0, glm::vec2 p1, float scale);
+
+ glm::vec2 next();
+
+ private:
+ glm::vec2 p;
+ const glm::vec2 d;
+ float error;
+ glm::vec3 inc;
+ };
+
protected:
Limits limit {}; // Base grid limits first(x,y) -> second(x,y)
glm::uvec2 size {};