Improve Curve#getCrossings() documentation and code.