2d.path.isPointInPath.unclosed

isPointInPath() works on unclosed subpaths