private static boolean polylineContainsPolyline_ ( Polyline polyline_a , Polyline polyline_b , double tolerance , ProgressTracker progress_tracker ) { Envelope2D env_a = new Envelope2D ( ) , env_b = new Envelope2D ( ) ; polyline_a . queryEnvelope2D ( env_a ) ; polyline_b . queryEnvelope2D ( env_b ) ; // Quick envelope rejection test for false equality. if ( ! envelopeInfContainsEnvelope_ ( env_a , env_b , tolerance ) ) return false ; // Quick rasterize test to see whether the the geometries are disjoint. if ( tryRasterizedContainsOrDisjoint_ ( polyline_a , polyline_b , tolerance , false ) == Relation . disjoint ) return false ; return linearPathWithinLinearPath_ ( polyline_b , polyline_a , tolerance , false ) ; }
Returns true if polyline_a contains polyline_b .