MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / rayPolylineIntersect

Function rayPolylineIntersect

source/MRMesh/MRPolyline2Intersect.cpp:221–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221std::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
235std::optional<PolylineIntersectionResult2> rayPolylineIntersect( const Polyline2& polyline, const Line2d& line,
236 double rayStart, double rayEnd, const IntersectionPrecomputes2<double>* prec, bool closestIntersect )

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68