Skip to content

Fix SkyPoint::EquatorialToHorizontal giving Az=360.0

Fabrizio Pollastri requested to merge fabrizio/kstars:fix_unreduced_az into master

Overview

In SkyPoint, equatorial to horizontal conversion method produces Az=360.0 when sinHA is 1.0 (HA=PI/2) or 0.0000000000000001 (HA=PI) and Az=0.0 . For example, this happens for HA/Dec: 180.0/0.0 , 180.0/90.0 , 90.0/90.0 .

The horizontal to equatorial conversion method is not affected, since the reduceToRange method is called to reduce the RA output to the range 0.0 <= RA < 2 PI .

Details

Fix changed file .../kstars/skyobjects/skypoint.cpp

Merge request reports