summaryrefslogtreecommitdiff
path: root/core/math/transform_3d.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-05 15:25:30 +0200
committerGitHub <noreply@github.com>2022-05-05 15:25:30 +0200
commitccef98441e0c6869876b4b075cb27e694e3b9ed3 (patch)
tree1614191803e6ba7d28d435e512743b770099218f /core/math/transform_3d.cpp
parent7a30317367fb1020831fb9682683531d92a74000 (diff)
parente7a58a7eb6d45b530eeaea88cfa29adcd8df02f3 (diff)
Merge pull request #60784 from akien-mga/faire-phi-des-anglois
Diffstat (limited to 'core/math/transform_3d.cpp')
-rw-r--r--core/math/transform_3d.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/math/transform_3d.cpp b/core/math/transform_3d.cpp
index b5fe16bca6..76b31daa76 100644
--- a/core/math/transform_3d.cpp
+++ b/core/math/transform_3d.cpp
@@ -57,16 +57,16 @@ Transform3D Transform3D::inverse() const {
return ret;
}
-void Transform3D::rotate(const Vector3 &p_axis, real_t p_phi) {
- *this = rotated(p_axis, p_phi);
+void Transform3D::rotate(const Vector3 &p_axis, real_t p_angle) {
+ *this = rotated(p_axis, p_angle);
}
-Transform3D Transform3D::rotated(const Vector3 &p_axis, real_t p_phi) const {
- return Transform3D(Basis(p_axis, p_phi), Vector3()) * (*this);
+Transform3D Transform3D::rotated(const Vector3 &p_axis, real_t p_angle) const {
+ return Transform3D(Basis(p_axis, p_angle), Vector3()) * (*this);
}
-void Transform3D::rotate_basis(const Vector3 &p_axis, real_t p_phi) {
- basis.rotate(p_axis, p_phi);
+void Transform3D::rotate_basis(const Vector3 &p_axis, real_t p_angle) {
+ basis.rotate(p_axis, p_angle);
}
Transform3D Transform3D::looking_at(const Vector3 &p_target, const Vector3 &p_up) const {