calculate angle and distance from target