path.containsPoint(p [, opt])
Return true
if the point p
is inside the area surrounded by the path (inclusive). Return false
otherwise. Uses the even-odd algorithm to resolve self-intersections.
Uses the path.toPolylines()
function in the background. The precision of the calculation may be adjusted by passing the opt.precision
and opt.subdivisions
properties.