Core: Rename math 'phi' arguments to 'angle'
This commit is contained in:
parent
b05fbb21e5
commit
e7a58a7eb6
20 changed files with 73 additions and 73 deletions
|
|
@ -35,13 +35,13 @@
|
|||
#include "core/math/vector3i.h"
|
||||
#include "core/string/ustring.h"
|
||||
|
||||
void Vector3::rotate(const Vector3 &p_axis, const real_t p_phi) {
|
||||
*this = Basis(p_axis, p_phi).xform(*this);
|
||||
void Vector3::rotate(const Vector3 &p_axis, const real_t p_angle) {
|
||||
*this = Basis(p_axis, p_angle).xform(*this);
|
||||
}
|
||||
|
||||
Vector3 Vector3::rotated(const Vector3 &p_axis, const real_t p_phi) const {
|
||||
Vector3 Vector3::rotated(const Vector3 &p_axis, const real_t p_angle) const {
|
||||
Vector3 r = *this;
|
||||
r.rotate(p_axis, p_phi);
|
||||
r.rotate(p_axis, p_angle);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue