From 6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Jan 2024 13:04:31 +0000 Subject: Template Ray on position type --- game/selectable.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'game/selectable.h') diff --git a/game/selectable.h b/game/selectable.h index c794461..fc6af4e 100644 --- a/game/selectable.h +++ b/game/selectable.h @@ -4,7 +4,7 @@ #include #include -class Ray; +template class Ray; class Selectable { public: @@ -12,5 +12,6 @@ public: virtual ~Selectable() = default; DEFAULT_MOVE_COPY(Selectable); - [[nodiscard]] virtual bool intersectRay(const Ray &, BaryPosition &, RelativeDistance &) const = 0; + [[nodiscard]] virtual bool intersectRay(const Ray &, BaryPosition &, RelativeDistance &) const + = 0; }; -- cgit v1.2.3