add method multVec to MatrixPy class for better consistency

This commit is contained in:
wmayer
2019-01-22 15:57:10 +01:00
parent 47a2296c69
commit ba14668e1a
2 changed files with 19 additions and 1 deletions

View File

@@ -387,6 +387,16 @@ PyObject* MatrixPy::multiply(PyObject * args)
return 0;
}
PyObject* MatrixPy::multVec(PyObject * args)
{
PyObject *obj;
if (!PyArg_ParseTuple(args, "O!", &(VectorPy::Type), &obj))
return NULL;
Base::Vector3d vec(static_cast<VectorPy*>(obj)->value());
getMatrixPtr()->multVec(vec, vec);
return new VectorPy(new Vector3d(vec));
}
PyObject* MatrixPy::invert(PyObject * args)
{
if (!PyArg_ParseTuple(args, ""))