private static boolean multiPointContainsEnvelope_ ( MultiPoint multipoint_a , Envelope envelope_b , double tolerance , ProgressTracker progress_tracker ) { Envelope2D env_a = new Envelope2D ( ) , env_b = new Envelope2D ( ) ; multipoint_a . queryEnvelope2D ( env_a ) ; envelope_b . queryEnvelope2D ( env_b ) ; if ( ! envelopeInfContainsEnvelope_ ( env_a , env_b , tolerance ) ) return false ; if ( env_b . getHeight ( ) > tolerance || env_b . getWidth ( ) > tolerance ) return false ; Point2D pt_b = envelope_b . getCenterXY ( ) ; return ! multiPointDisjointPointImpl_ ( multipoint_a , pt_b , tolerance , progress_tracker ) ; }
Returns true if multipoint_a contains envelope_b .