[Debian-astro-commits] [gyoto] 83/221: exchange pitch and roll in gyoto_matte_paint
Thibaut Jean-Claude Paumard
thibaut at moszumanska.debian.org
Fri May 22 20:52:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
thibaut pushed a commit to branch master
in repository gyoto.
commit b708cf11be0d6bcf76d356ac824a90bb3e87a7d9
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date: Tue Nov 4 19:32:01 2014 +0100
exchange pitch and roll in gyoto_matte_paint
---
yorick/gyoto.i | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/yorick/gyoto.i b/yorick/gyoto.i
index d187152..1dca40b 100644
--- a/yorick/gyoto.i
+++ b/yorick/gyoto.i
@@ -812,10 +812,10 @@ func gyoto_matte_paint(set, paint, kind=, yaw=, pitch=, roll=)
// Then, apply each rotation in order.
// yaw, about Z axis
if (!is_void(yaw)) R = gyoto.rotation(3, yaw);
- // pitch, about rotated Z axis
- if (!is_void(pitch)) R = gyoto.rotation(1, pitch)(,+)*R(+,);
+ // pitch, about rotated Y axis
+ if (!is_void(pitch)) R = gyoto.rotation(2, pitch)(,+)*R(+,);
// roll, about rotated X axis
- if (!is_void(roll)) R = gyoto.rotation(2, roll)(,+)*R(+,);
+ if (!is_void(roll)) R = gyoto.rotation(1, roll)(,+)*R(+,);
// Transform the photon's 4-velocity into Cartesian coordinates
if (coordkind==gyoto.coordkind.spherical) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git
More information about the Debian-astro-commits
mailing list