[Debian-astro-commits] [gyoto] 50/221: Screen: add the x -> -x transformation for SphericalAngles
Thibaut Jean-Claude Paumard
thibaut at moszumanska.debian.org
Fri May 22 20:52:32 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 1556512862b395ddbef9d1da056db22fbda0b1b2
Author: Frederic <frederic at MacFrederic.local>
Date: Wed Oct 15 12:04:11 2014 +0200
Screen: add the x -> -x transformation for SphericalAngles
---
lib/Screen.C | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/Screen.C b/lib/Screen.C
index 2adf768..de4c181 100644
--- a/lib/Screen.C
+++ b/lib/Screen.C
@@ -364,9 +364,10 @@ void Screen::getRayCoord(const size_t i, const size_t j, double coord[]) const {
*/
xscr = double(i-1)*fov_/(2.*double(npix_-1));
yscr = double(j-1)*2.*M_PI/double(npix_-1);
- getRayCoord(xscr, yscr, coord);
- // NB: there will be also a X->-X transformation needed,
- // that must be done when plotting the image
+ getRayCoord(xscr,M_PI-yscr, coord);
+ // NB: here xscr and yscr are the spherical angles
+ // a and b ; the b->pi-b transformation boils down
+ // to performing X->-X, just as below for equat angles.
}else{
/*
GYOTO screen labelled by equatorial
@@ -472,6 +473,7 @@ void Screen::getRayCoord(double alpha, double delta,
spherical_angle_a=s1tmp;
spherical_angle_b=s2tmp;
+
/*
Tangent vector of incident photon in observer's local frame
vel is thus orthogonal to observer's 4-velocity
--
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