How to know whether a point is in a closed curve or not? The curve is on a plane.

Hi all,

How to know whether a point is in a closed curve or not? The curve is on a plane.
Or how to know whether a vertex is in a closed wire or not? The wire is on a plane.

Thanks in advance!

greg iven's picture

if the curve is a circle, maybe you could try comparing the distance from the point to the center of the curve with the radius of the curve. If the distance is less than the radius then it's in the curve. If the curve is not a circle you might try piecewise analysis