Torsten
Posts:
1,477
Registered:
11/8/10


RE: Can matlab determine if a point inside a polygon?
Posted:
Jun 21, 2013 2:55 AM


"sh " <lolipopkitty@yahoo.com> wrote in message <kq0s92$8n4$1@newscl01ah.mathworks.com>... > Is there any built in function in matlab, for checking if a point is inside an arc section of a circle? > Thanks,
If you know that the point lies on the circumference of the circle and you only want to determine wheter it lies inside a certain arc section, you can proceed as follows: Calculate theta=atan2((yy_M)/(xx_M)) where (x_M,y_M) is the center of the circle and (x,y) is the point in question. Then compare theta with the angular range of the arc section and decide whether the point lies inside or outside.
Best wishes Torsten.

