summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-01-13 01:45:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-01-21 20:58:55 +0000
commit1aba027462a861f2c1155672792dbbe555d7dc0a (patch)
treef406c86cc0c610c05da63fc508d8963f0cb61ba4 /game/geoData.h
parentAdd default Q = glm::defaultp to maths functions (diff)
downloadilt-1aba027462a861f2c1155672792dbbe555d7dc0a.tar.bz2
ilt-1aba027462a861f2c1155672792dbbe555d7dc0a.tar.xz
ilt-1aba027462a861f2c1155672792dbbe555d7dc0a.zip
Add distance helperterrain-for-networks
Works with integer positions, first template param allows forcing to N dimensions
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/geoData.h b/game/geoData.h
index 7e4c28f..390a443 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -136,7 +136,7 @@ protected:
[[nodiscard]] HalfedgeHandle findBoundaryStart() const;
[[nodiscard]] RelativePosition3D difference(const HalfedgeHandle) const;
- [[nodiscard]] RelativeDistance length(const HalfedgeHandle) const;
+ template<glm::length_t D> [[nodiscard]] RelativeDistance length(const HalfedgeHandle) const;
[[nodiscard]] GlobalPosition3D centre(const HalfedgeHandle) const;
void updateAllVertexNormals();