Merge pull request #87688 from AThousandShips/what_is_this

Remove unnecessary `this->` expressions
This commit is contained in:
Rémi Verschelde 2024-01-29 13:18:09 +01:00
commit fa48a51183
No known key found for this signature in database
GPG key ID: C3336907360768E1
39 changed files with 160 additions and 160 deletions

View file

@ -514,7 +514,7 @@ Vector3 Vector3::slide(const Vector3 &p_normal) const {
#ifdef MATH_CHECKS
ERR_FAIL_COND_V_MSG(!p_normal.is_normalized(), Vector3(), "The normal Vector3 " + p_normal.operator String() + " must be normalized.");
#endif
return *this - p_normal * this->dot(p_normal);
return *this - p_normal * dot(p_normal);
}
Vector3 Vector3::bounce(const Vector3 &p_normal) const {
@ -525,7 +525,7 @@ Vector3 Vector3::reflect(const Vector3 &p_normal) const {
#ifdef MATH_CHECKS
ERR_FAIL_COND_V_MSG(!p_normal.is_normalized(), Vector3(), "The normal Vector3 " + p_normal.operator String() + " must be normalized.");
#endif
return 2.0f * p_normal * this->dot(p_normal) - *this;
return 2.0f * p_normal * dot(p_normal) - *this;
}
#endif // VECTOR3_H