mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Use Math::abs to avoid ambiguity with integer abs
This commit is contained in:
parent
215acd52e8
commit
40b5468c6d
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ struct [[nodiscard]] Quaternion {
|
|||
Vector3 n0 = p_v0.normalized();
|
||||
Vector3 n1 = p_v1.normalized();
|
||||
real_t d = n0.dot(n1);
|
||||
if (abs(d) > ALMOST_ONE) {
|
||||
if (Math::abs(d) > ALMOST_ONE) {
|
||||
if (d >= 0) {
|
||||
return; // Vectors are same.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue