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.

MDN Reference