Stores if the R is less than or equal to the distance between center and point
if ( radius >= Math . sqrt ( Math . pow ( ( y1 - points [ i ] [ 1 ] ) , 2 ) + Math . pow ( x1 - points [ i ] [ 0 ] , 2 ) ) ) { condTwo = true ; } if ( condOne && condTwo ) { ans += 1 ; } } return ans ; }