cdm/src/main/java/ucar/nc2/ft2/simpgeometry/CFLine.java
public double[] getBBUpper() {
		double[] bbUpper = new double[2];
		
		List<Point> ptList = this.getPoints();
		if(ptList.isEmpty()) return null;
		bbUpper[0] = ptList.get(0).getY();
		bbUpper[1] = ptList.get(0).getY();
		
		for(Point pt : this.getPoints()) {
			if(bbUpper[0] < pt.getX()){
				bbUpper[0] = pt.getX();
			}
			
			if(bbUpper[1] < pt.getY()) {
				bbUpper[1] = pt.getY();
			}
		}
		
		// Got maximum points, add some padding.
		bbUpper[0] += 10;
		bbUpper[1] += 10;
		
		return bbUpper;
	}
public double[] getBBUpper() {
		double[] bbUpper = new double[2];
		
		List<Point> ptList = this.getPoints();
		if(ptList.isEmpty()) return null;
		bbUpper[0] = ptList.get(0).getY();
		bbUpper[1] = ptList.get(0).getY();
		
		for(Point pt : this.getPoints()) {
			if(bbUpper[0] < pt.getX()){
				bbUpper[0] = pt.getX();
			}
			
			if(bbUpper[1] < pt.getY()) {
				bbUpper[1] = pt.getY();
			}
		}
		
		// Got maximum points, add some padding.
		bbUpper[0] += 10;
		bbUpper[1] += 10;
		
		return bbUpper;
	}
public double [ ] getBBUpper ( ) { double [ ] bbUpper = new double [ 2 ] ; List < Point > ptList = this . getPoints ( ) ; if ( ptList . isEmpty ( ) ) return null ; bbUpper [ 0 ] = ptList . get ( 0 ) . getY ( ) ; bbUpper [ 1 ] = ptList . get ( 0 ) . getY ( ) ; for ( Point pt : this . getPoints ( ) ) { if ( bbUpper [ 0 ] < pt . getX ( ) ) { bbUpper [ 0 ] = pt . getX ( ) ; } if ( bbUpper [ 1 ] < pt . getY ( ) ) { bbUpper [ 1 ] = pt . getY ( ) ; } } // Got maximum points, add some padding.
 bbUpper [ 0 ] += 10 ; bbUpper [ 1 ] += 10 ; return bbUpper ; }
Gets the upper bounding box coordinate on the line.
@return double array = (x, y)
Gets the upper bounding box coordinate on the line .