Driver Code
var rectangle = [ [ 0 , 0 ] , [ 0 , 5 ] , [ 5 , 0 ] , [ 5 , 5 ] ] ; var points = [ [ 1 , 2 ] , [ 3 , 4 ] ] ; var N = points . length ; document . write ( cntRect ( points , N , rectangle ) ) ;