diff options
author | Kelly Thomas <kelly.thomas@hotmail.com.au> | 2018-08-19 21:27:15 +0800 |
---|---|---|
committer | Kelly Thomas <kelly.thomas@hotmail.com.au> | 2018-08-24 07:56:54 +0800 |
commit | a94168459004e93a9c9431d29bac04fec3850631 (patch) | |
tree | 4c80568934198785fd1b02c625e5ec50d485b8ba /core/math/quat.cpp | |
parent | 8bc9986db4a91a35e8c540b2b3cfbe81b2f2e1e6 (diff) | |
download | redot-engine-a94168459004e93a9c9431d29bac04fec3850631.tar.gz |
mono: Quat - add some missing constructors and methods
Diffstat (limited to 'core/math/quat.cpp')
-rw-r--r-- | core/math/quat.cpp | 2 |
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 { |