| 219 | } |
| 220 | |
| 221 | std::optional<PolylineIntersectionResult2> rayPolylineIntersect( const Polyline2& polyline, const Line2f& line, |
| 222 | float rayStart, float rayEnd, const IntersectionPrecomputes2<float>* prec, bool closestIntersect ) |
| 223 | { |
| 224 | if( prec ) |
| 225 | { |
| 226 | return rayPolylineIntersect_<float>( polyline, line, rayStart, rayEnd, *prec, closestIntersect ); |
| 227 | } |
| 228 | else |
| 229 | { |
| 230 | const IntersectionPrecomputes2<float> precNew( line.d ); |
| 231 | return rayPolylineIntersect_<float>( polyline, line, rayStart, rayEnd, precNew, closestIntersect ); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | std::optional<PolylineIntersectionResult2> rayPolylineIntersect( const Polyline2& polyline, const Line2d& line, |
| 236 | double rayStart, double rayEnd, const IntersectionPrecomputes2<double>* prec, bool closestIntersect ) |