isPointInFill

fun isPointInFill(point: DOMPointReadOnly = definedExternally): Boolean(source)

The isPointInFill() method of the SVGGeometryElement interface determines whether a given point is within the fill shape of an element. The point argument is interpreted as a point in the local coordinate system of the element.

MDN Reference