diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-07 01:10:26 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-07 01:10:26 +0000 |
commit | 95eed94c9294f719724283e672cc7c83b2abd282 (patch) | |
tree | f0078bdacea65bfb03be3700c6e0f0c896336778 /game/geoData.cpp | |
parent | Helper to create a cubiod from dimensions (diff) | |
download | ilt-95eed94c9294f719724283e672cc7c83b2abd282.tar.bz2 ilt-95eed94c9294f719724283e672cc7c83b2abd282.tar.xz ilt-95eed94c9294f719724283e672cc7c83b2abd282.zip |
Unified crossProduct
Diffstat (limited to 'game/geoData.cpp')
-rw-r--r-- | game/geoData.cpp | 2 |
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}; } |