summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2018-08-27 16:18:09 +0200
committerGitHub <noreply@github.com>2018-08-27 16:18:09 +0200
commit78bb53f85d97d3a5b66d9005732c3c07c1f0e636 (patch)
treea807e66bdab3822c5b6955b9079795f3f8d4943e /core
parent35fbb11cec6d4048704afe566d4e12563bd9fbc3 (diff)
parenta94168459004e93a9c9431d29bac04fec3850631 (diff)
Merge pull request #21205 from KellyThomas/c-sharp-feature-parity-quat
[Mono] Quat - add some missing constructors and methods
Diffstat (limited to 'core')
-rw-r--r--core/math/quat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quat.cpp b/core/math/quat.cpp
index 67c9048a41..2251571146 100644
--- a/core/math/quat.cpp
+++ b/core/math/quat.cpp
@@ -134,7 +134,7 @@ Quat Quat::normalized() const {
}
bool Quat::is_normalized() const {
- return Math::is_equal_approx(length(), 1.0);
+ return Math::is_equal_approx(length_squared(), 1.0);
}
Quat Quat::inverse() const {