summaryrefslogtreecommitdiff
path: root/lib/triangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/triangle.h')
-rw-r--r--lib/triangle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/triangle.h b/lib/triangle.h
index d5547ab..e430653 100644
--- a/lib/triangle.h
+++ b/lib/triangle.h
@@ -48,7 +48,7 @@ struct Triangle : public glm::vec<3, glm::vec<Dim, T, Q>> {
[[nodiscard]] constexpr auto
height()
{
- return (area() * 2) / glm::length(difference(p(0), p(1)));
+ return (area() * 2) / ::distance(p(0), p(1));
}
[[nodiscard]] constexpr Normal3D