mistake in last commit
This commit is contained in:
@@ -310,7 +310,7 @@ static PyObject *M_Geometry_ClosestPointOnLine( PyObject * self, PyObject * args
|
|||||||
/* do the calculation */
|
/* do the calculation */
|
||||||
lambda = lambda_cp_line_ex(pt_in, l1, l2, pt_out);
|
lambda = lambda_cp_line_ex(pt_in, l1, l2, pt_out);
|
||||||
|
|
||||||
PyTuple_New(2);
|
ret = PyTuple_New(2);
|
||||||
PyTuple_SET_ITEM( ret, 0, newVectorObject(pt_out, 3, Py_NEW) );
|
PyTuple_SET_ITEM( ret, 0, newVectorObject(pt_out, 3, Py_NEW) );
|
||||||
PyTuple_SET_ITEM( ret, 1, PyFloat_FromDouble(lambda) );
|
PyTuple_SET_ITEM( ret, 1, PyFloat_FromDouble(lambda) );
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user