public void setFromPoints ( Point2D [ ] points ) { if ( points == null || points . length == 0 ) { setEmpty ( ) ; return ; } Point2D pt = points [ 0 ] ; setCoords ( pt . x , pt . y ) ; for ( int i = 1 ; i < points . length ; i ++ ) { Point2D pt2d = points [ i ] ; mergeNE ( pt2d . x , pt2d . y ) ; } }
Sets the envelope from the array of points . The envelope will be set to empty if the array is null .