closedpath : a function which returns true if the point is inside
                        the path
    )