summaryrefslogtreecommitdiff
path: root/gfx/gl/camera.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 /gfx/gl/camera.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 'gfx/gl/camera.cpp')
-rw-r--r--gfx/gl/camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/camera.cpp b/gfx/gl/camera.cpp
index d362b94..0bc911a 100644
--- a/gfx/gl/camera.cpp
+++ b/gfx/gl/camera.cpp
@@ -31,8 +31,8 @@ Camera::updateView()
Direction3D
Camera::upFromForward(const Direction3D & forward)
{
- const auto right = glm::cross(forward, ::down);
- return glm::cross(forward, right);
+ const auto right = crossProduct(forward, ::down);
+ return crossProduct(forward, right);
}
std::array<GlobalPosition4D, 4>