Fix bug in arcToPoints. Was using mod pi instead of mod 2pi.