MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / row

Method row

src/Base/MatrixPyImp.cpp:498–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498PyObject* MatrixPy::row(PyObject* args) const
499{
500 int index {};
501 if (!PyArg_ParseTuple(args, "i", &index)) {
502 return nullptr;
503 }
504
505 if (index < 0 || index > 3) {
506 PyErr_SetString(PyExc_ValueError, "Index expected in the range [0, 3]");
507 return nullptr;
508 }
509
510 Matrix4D* mat = getMatrixPtr();
511 Vector3d v = mat->getRow(index);
512 return Py::new_reference_to(Py::Vector(v));
513}
514
515PyObject* MatrixPy::setRow(PyObject* args)
516{

Callers 15

_moveCellsMethod · 0.45
_offsetCellsMethod · 0.45
RangeMethod · 0.45
flipOrientationMethod · 0.45
onButtonAcceptClickedMethod · 0.45
getSheetImageMethod · 0.45
GCS.cppFile · 0.45
paintMethod · 0.45

Calls 3

new_reference_toFunction · 0.85
VectorFunction · 0.70
getRowMethod · 0.45

Tested by 1

testColRowMethod · 0.36