static PyObject *Py_point_on_path(PyObject *self, PyObject *args, PyObject *kwds) { double x, y, r; py::PathIterator path; agg::trans_affine trans; bool result; if (!PyArg_ParseTuple(args, "dddO&O&:point_on_path", &x, &y, &r, &convert_path, &path, &convert_trans_affine, &trans)) { return NULL; } CALL_CPP("point_on_path", (result = point_on_path(x, y, r, path, trans))); if (result) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } }
bool hit_test(value_type x,value_type y, double tol) const { return point_on_path(x,y,cont_.begin(),cont_.end(),tol); }