question: public ContourPath ( ContourAttrib attr , int levelIndex , double [ ] x , double [ ] y ) { xArr = x ; yArr = y ; this . levelIndex = levelIndex ; attributes = attr ; int np = xArr . length ; if ( Math . abs ( x [ 0 ] - x [ np - 1 ] ) < kSmallX && Math . abs ( y [ 0 ] - y [ np - 1 ] ) < kSmallY ) { closed = true ; x [ np - 1 ] = x [ 0 ] ; y [ np - 1 ] = y [ 0 ] ; } else closed = false ; }
target:  Construct a contour path or line using the given arrays of X & Y values.