summaryrefslogtreecommitdiff
path: root/game/geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-01 14:06:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-01 14:06:28 +0000
commitd982157ee2711f2a28a8ca0dc5f882424626217c (patch)
treed78d02d82909a30224482395c8678b62f275d271 /game/geoData.cpp
parentConstrained Arithmatic type concept (diff)
downloadilt-d982157ee2711f2a28a8ca0dc5f882424626217c.tar.bz2
ilt-d982157ee2711f2a28a8ca0dc5f882424626217c.tar.xz
ilt-d982157ee2711f2a28a8ca0dc5f882424626217c.zip
Remove GeoData::difference for points, use global version
Diffstat (limited to 'game/geoData.cpp')
-rw-r--r--game/geoData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp
index f43e231..a5fc4ef 100644
--- a/game/geoData.cpp
+++ b/game/geoData.cpp
@@ -361,7 +361,7 @@ GeoData::findBoundaryStart() const
[[nodiscard]] RelativePosition3D
GeoData::difference(const HalfedgeHandle heh) const
{
- return point(to_vertex_handle(heh)) - point(from_vertex_handle(heh));
+ return ::difference(point(to_vertex_handle(heh)), point(from_vertex_handle(heh)));
}
[[nodiscard]] RelativeDistance
@@ -427,7 +427,7 @@ GeoData::setHeights(const std::span<const GlobalPosition3D> triangleStrip, const
const auto vertexDistFrom = [this](GlobalPosition2D p) {
return [p, this](const VertexHandle v) {
- return std::make_pair(v, glm::length(difference(this->point(v).xy(), p)));
+ return std::make_pair(v, glm::length(::difference(p, this->point(v).xy())));
};
};