Skip to content

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.

Circle2

Circle to check against.

Point2

Point to check.

boolean

True if the point is inside or on the boundary of the circle, false otherwise.