From a4020e3dbc40cee95687eef316f6f7049132b8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 16 Mar 2020 20:38:30 +0100 Subject: [PATCH] DebugTools: there are no binormals, only bitangents. There's just one normal, but several tangents, so. --- .../DebugTools/Implementation/ForceRendererTransformation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/DebugTools/Implementation/ForceRendererTransformation.h b/src/Magnum/DebugTools/Implementation/ForceRendererTransformation.h index 82c6ab5cf..586e36f8a 100644 --- a/src/Magnum/DebugTools/Implementation/ForceRendererTransformation.h +++ b/src/Magnum/DebugTools/Implementation/ForceRendererTransformation.h @@ -57,11 +57,11 @@ template<> Matrix4 forceRendererTransformation<3>(const Vector3& forcePosition, const Vector3 normal = Math::cross(Vector3::xAxis(), force).normalized(); /* Third base vector, orthogonal to force and normal */ - const Vector3 binormal = Math::cross(normal, force/forceLength); - CORRADE_INTERNAL_ASSERT(binormal.isNormalized()); + const Vector3 bitangent = Math::cross(normal, force/forceLength); + CORRADE_INTERNAL_ASSERT(bitangent.isNormalized()); /* Transformation matrix from scaled base vectors and translation vector */ - return Matrix4::from({force, normal*forceLength, binormal*forceLength}, forcePosition); + return Matrix4::from({force, normal*forceLength, bitangent*forceLength}, forcePosition); } }}}