Circle.contains_point

Circle.contains_point(point, tol=1e-06, dmax=1e-06)[source]

Verify that the circle contains a given point.

Parameters:
pointcompas.geometry.Point

The point.

tolfloat, optional

The tolerance for the verification.

dmaxfloat, optional

The maximum allowed distance between the plane of the circle and the point.

Returns:
bool

True if the point is on the circle. False otherwise.

Notes

By default, the verification will fail if the point is not exactly in the plane of the circle. To allow for a certain tolerance, use the dmax parameter. Like with apparent intersections, using a dmax higher than zero, allows for “apparent containment” checks