spelling: cotangent

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2023-01-18 08:34:34 -05:00
parent 336d5590d8
commit 59cfd0b200

View File

@@ -117,13 +117,13 @@ namespace glm
if (position.y < typename genType::value_type(0) || position.y > typename genType::value_type(1)) if (position.y < typename genType::value_type(0) || position.y > typename genType::value_type(1))
return false; return false;
genType Cotengant = cross(Tengant, edge1); genType Cotangent = cross(Tengant, 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)) if (position.z < typename genType::value_type(0) || position.y + position.z > typename genType::value_type(1))
return false; return false;
position.x = dot(edge2, Cotengant) * inv_det; position.x = dot(edge2, Cotangent) * inv_det;
return true; return true;
} }