Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
@ -230,7 +230,7 @@ Vector2 Vector2::linear_interpolate(const Vector2 &p_b, real_t p_t) const {
|
||||
|
||||
Vector2 Vector2::slerp(const Vector2 &p_b, real_t p_t) const {
|
||||
#ifdef MATH_CHECKS
|
||||
ERR_FAIL_COND_V(is_normalized() == false, Vector2());
|
||||
ERR_FAIL_COND_V(!is_normalized(), Vector2());
|
||||
#endif
|
||||
real_t theta = angle_to(p_b);
|
||||
return rotated(theta * p_t);
|
||||
|
||||
Reference in New Issue
Block a user