I want to check an element if it's in a circle in my browser. I know the circle formula from my high school:
But I'm not sure if it's same in browser XY system too. Because browsers zero coordinate is on left top of the page and from there to right is positive x
axis and to bottom is positive y
axis.
For example in this picture point c have positive x
and y
. Please optimize the circle formula for this system and also give me the correct formula for a circle centered in c = (200,200)
with 150
radius.