Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

check if point is in circle

sqrt((x - center_x) ** 2 + (y - center_y) ** 2) < r

Calculate the distance and check if it is in the radius
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #point #circle
ADD COMMENT
Topic
Name
4+5 =