circle2ContainsPoint
circle2ContainsPoint(
c,p):boolean
Defined in: circle2.ts:45
Determines whether a point is inside or on the boundary of a 2D circle.
Exact: the boundary is measure-zero, so a tolerance would only move it by an
arbitrary amount. For deliberate slack, inflate c.radius — a length, unlike
an epsilon on the squared distance compared here.
Parameters
Section titled “Parameters”Circle to check against.
Point to check.
Returns
Section titled “Returns”boolean
True if the point is inside or on the boundary of the circle, false otherwise.