fix issue with spec having different behavior on 1.9.2 due to different ruby behavior with atan2(0,0)