Stores if a point lies above the diameter or not
let condOne = false , condTwo = false ; if ( ( points [ i ] [ 1 ] - y2 ) * ( x2 - x1 ) - ( y2 - y1 ) * ( points [ i ] [ 0 ] - x2 ) >= 0 ) { condOne = true ; }