소스 검색

Use Math::abs to avoid ambiguity with integer abs

Marc Gilleron 5 달 전
부모
커밋
40b5468c6d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/math/quaternion.h

+ 1 - 1
core/math/quaternion.h

@@ -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.
 			}