summaryrefslogtreecommitdiff
path: root/game/geoData.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-07 01:10:26 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-07 01:10:26 +0000
commit95eed94c9294f719724283e672cc7c83b2abd282 (patch)
treef0078bdacea65bfb03be3700c6e0f0c896336778 /game/geoData.cpp
parentHelper to create a cubiod from dimensions (diff)
downloadilt-95eed94c9294f719724283e672cc7c83b2abd282.tar.bz2
ilt-95eed94c9294f719724283e672cc7c83b2abd282.tar.xz
ilt-95eed94c9294f719724283e672cc7c83b2abd282.zip
Unified crossProduct
Diffstat (limited to 'game/geoData.cpp')
-rw-r--r--game/geoData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp
index 97f4a26..816733f 100644
--- a/game/geoData.cpp
+++ b/game/geoData.cpp
@@ -161,7 +161,7 @@ namespace {
positionOnTriangle(const GlobalPosition2D point, const GeoData::Triangle<3> & t)
{
const CalcPosition3D a = t[1] - t[0], b = t[2] - t[0];
- const auto n = crossInt(a, b);
+ const auto n = crossProduct(a, b);
return {point, ((n.x * t[0].x) + (n.y * t[0].y) + (n.z * t[0].z) - (n.x * point.x) - (n.y * point.y)) / n.z};
}