Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
parent
37386f112b
commit
4f7b33cdcf
33 changed files with 81 additions and 73 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue