diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-02-14 02:04:44 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-02-14 02:04:44 +0000 |
commit | 6535a9c7f4e8fec978c079d45c0349a004b73241 (patch) | |
tree | e5e1a9fbae0cf1d0df90af4fbf65573f36c42eca /game/geoData.h | |
parent | Include face handle in intersectRay result (diff) | |
download | ilt-6535a9c7f4e8fec978c079d45c0349a004b73241.tar.bz2 ilt-6535a9c7f4e8fec978c079d45c0349a004b73241.tar.xz ilt-6535a9c7f4e8fec978c079d45c0349a004b73241.zip |
Fix getting cartesian coords from triangle baripos
Diffstat (limited to 'game/geoData.h')
-rw-r--r-- | game/geoData.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/geoData.h b/game/geoData.h index f599552..6c6ae26 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -66,7 +66,7 @@ public: { const auto & t {*this}; return t[0] + GlobalPosition<Dim>(RelativePosition<Dim>(t[1] - t[0]) * bari.x) - + GlobalPosition<Dim>(RelativePosition<Dim>(t[2] - t[1]) * bari.y); + + GlobalPosition<Dim>(RelativePosition<Dim>(t[2] - t[0]) * bari.y); } }; |