summaryrefslogtreecommitdiff
path: root/src/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector.h')
-rw-r--r--src/vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vector.h b/src/vector.h
index 5d7d63d7..6bf6d81a 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -140,7 +140,7 @@ class Vector
*/
float length() const
{
- return sqrtf(x * x + y * y + z * z);
+ return std::sqrt(x * x + y * y + z * z);
}
/**
@@ -156,7 +156,7 @@ class Vector
*/
float manhattanLength() const
{
- return fabsf(x) + fabsf(y) + fabsf(z);
+ return std::abs(x) + std::abs(y) + std::abs(z);
}
/**