Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:
-
Story Points:6
-
Epic Link:
-
Sprint:Alert Production S17 - 2, Alert Production S17 - 3
-
Team:Alert Production
Description
Change the named methods of Angle (which are wrap, wrapCtr, and wrapNear) to be const and to return a new Angle. This will clean up a lot of code.
Add separation(Angle other) -> Angle wrapped to [-pi, pi).
In afw/geom/SphPoint.cc, the function `wrap(Angle) -> Angle` is a workaround for this issue. It should be removed as part of the fix.