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

Method negative

src/Base/VectorPyImp.cpp:311–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311PyObject* VectorPy::negative(PyObject* args) const
312{
313 if (!PyArg_ParseTuple(args, "")) {
314 return nullptr;
315 }
316
317 VectorPy::PointerType this_ptr = getVectorPtr();
318 Vector3d v = -(*this_ptr);
319 return new VectorPy(v);
320}
321
322PyObject* VectorPy::richCompare(PyObject* v, PyObject* w, int op)
323{

Callers 15

_getDirectedNormalMethod · 0.80
alignSelMethod · 0.80
GetPathSolidMethod · 0.80
inverseMethod · 0.80
addTextFunction · 0.80
exportFunction · 0.80
offsetFunction · 0.80
get_svgFunction · 0.80
updateDataMethod · 0.80
updateDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected