From c5f9b3168826a80548602f0cad6652449660efc6 Mon Sep 17 00:00:00 2001 From: nishidate-yuki Date: Wed, 17 Nov 2021 14:46:17 +0900 Subject: [PATCH] Fix tengant typo --- glm/gtx/intersect.inl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glm/gtx/intersect.inl b/glm/gtx/intersect.inl index d242a61a..d7393557 100644 --- a/glm/gtx/intersect.inl +++ b/glm/gtx/intersect.inl @@ -114,19 +114,19 @@ namespace glm return false; typename genType::value_type inv_det = typename genType::value_type(1) / det; - genType Tengant = orig - vert0; + genType Tangent = orig - vert0; - position.y = dot(Tengant, Perpendicular) * inv_det; + position.y = dot(Tangent, Perpendicular) * inv_det; if (position.y < typename genType::value_type(0) || position.y > typename genType::value_type(1)) return false; - genType Cotengant = cross(Tengant, edge1); + genType Cotangent = cross(Tangent, edge1); - position.z = dot(dir, Cotengant) * inv_det; + position.z = dot(dir, Cotangent) * inv_det; if (position.z < typename genType::value_type(0) || position.y + position.z > typename genType::value_type(1)) return false; - position.x = dot(edge2, Cotengant) * inv_det; + position.x = dot(edge2, Cotangent) * inv_det; return true; }