You probably want radius + epsilon
instead of radius - epsilon
if you want to include the border (imagine you are increasing the radius of the circle a bit to include the border). Maybe you also have to swap true
and false
, because currently the function will return true when the point is outside the circle.