summaryrefslogtreecommitdiffstats
path: root/core/math/quat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/math/quat.cpp')
-rw-r--r--core/math/quat.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/quat.cpp b/core/math/quat.cpp
index b990e9184f..6c06317cf1 100644
--- a/core/math/quat.cpp
+++ b/core/math/quat.cpp
@@ -91,6 +91,10 @@ Quat Quat::normalized() const {
return *this / length();
}
+bool Quat::is_normalized() const {
+ return Math::is_equal_approx(length(), 1.0);
+}
+
Quat Quat::inverse() const {
return Quat(-x, -y, -z, w);
}