Author Topic: Incredible angle math!  (Read 2255 times)

Offline dmcclain

  • PixInsight Addict
  • ***
  • Posts: 117
Incredible angle math!
« on: 2016 January 18 08:57:29 »
Sitting here doing some image registrations, and I saw a summary fly past stating that the image was rotated by -180.07 deg relative to the master frame. How does PI know this? How can it know that the rotation wasn't actually +179.93 deg?
:-)

Offline NGC7789

  • PixInsight Old Hand
  • ****
  • Posts: 391
Re: Incredible angle math!
« Reply #1 on: 2016 January 18 14:59:20 »
It would seem to me that a -180.07 rotation is equivalent to a +179.93 one. Are you saying it is not? If you asking why PI chooses one over the other? I would only be guessing.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Incredible angle math!
« Reply #2 on: 2016 January 19 01:05:25 »
Both are equivalent, but StarAlignment should always report rotation angles in the (-180,+180] range, so this is a bug. It will be fixed in the next version, thanks for detecting it.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/