mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
Split is_equal_approx into float and double versions to match Godot
https://github.com/godotengine/godot/pull/48882
This commit is contained in:
@@ -86,7 +86,7 @@ Quaternion Quaternion::normalized() const {
|
||||
}
|
||||
|
||||
bool Quaternion::is_normalized() const {
|
||||
return Math::is_equal_approx(length_squared(), 1.0, UNIT_EPSILON); //use less epsilon
|
||||
return Math::is_equal_approx(length_squared(), (real_t)1.0, (real_t)UNIT_EPSILON); //use less epsilon
|
||||
}
|
||||
|
||||
Quaternion Quaternion::inverse() const {
|
||||
|
||||
Reference in New Issue
Block a user