mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Rename built-in SGN() macro to SIGN()
This matches the name of the GDScript function (except it's uppercase here).
This commit is contained in:
@@ -261,7 +261,7 @@ Vector3 Basis::get_scale_abs() const {
|
||||
}
|
||||
|
||||
Vector3 Basis::get_scale_local() const {
|
||||
real_t det_sign = SGN(determinant());
|
||||
real_t det_sign = SIGN(determinant());
|
||||
return det_sign * Vector3(elements[0].length(), elements[1].length(), elements[2].length());
|
||||
}
|
||||
|
||||
@@ -287,7 +287,7 @@ Vector3 Basis::get_scale() const {
|
||||
// matrix elements.
|
||||
//
|
||||
// The rotation part of this decomposition is returned by get_rotation* functions.
|
||||
real_t det_sign = SGN(determinant());
|
||||
real_t det_sign = SIGN(determinant());
|
||||
return det_sign * get_scale_abs();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user