static PyObject *Polygon_warpToBox(Polygon *self, PyObject *args) { double x0, x1, y0, y1; if (! PyArg_ParseTuple(args, "dddd", &x0, &x1, &y0, &y1)) return Polygon_Raise(ERR_ARG); if (self->bbValid) poly_p_warpToBox(self->p, x0, x1, y0, y1, self->boundingBox); else poly_p_warpToBox(self->p, x0, x1, y0, y1, NULL); self->bbValid = 0; return Py_BuildValue("O", Py_None); }
static PyObject *Polygon_warpToBox(Polygon *self, PyObject *args) { double x0, x1, y0, y1; if (! PyArg_ParseTuple(args, "dddd", &x0, &x1, &y0, &y1)) return Polygon_Raise(ERR_ARG); if (self->bbValid) poly_p_warpToBox(self->gpc_p, x0, x1, y0, y1, self->boundingBox); else poly_p_warpToBox(self->gpc_p, x0, x1, y0, y1, NULL); self->bbValid = 0; Py_RETURN_NONE; }