public double [ ] getBBLower ( ) { double [ ] bbLower = new double [ 2 ] ; List < Point > ptList = this . getPoints ( ) ; if ( ptList . isEmpty ( ) ) return null ; bbLower [ 0 ] = ptList . get ( 0 ) . getY ( ) ; bbLower [ 1 ] = ptList . get ( 0 ) . getY ( ) ; for ( Point pt : this . getPoints ( ) ) { if ( bbLower [ 0 ] > pt . getX ( ) ) { bbLower [ 0 ] = pt . getX ( ) ; } if ( bbLower [ 1 ] > pt . getY ( ) ) { bbLower [ 1 ] = pt . getY ( ) ; } } // Got minimum points, add some padding. bbLower [ 0 ] -= 10 ; bbLower [ 1 ] -= 10 ; return bbLower ; }
Gets the lower bounding box coordinate on the line .