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

Method getAngle

src/Base/VectorPyImp.cpp:484–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484PyObject* VectorPy::getAngle(PyObject* args) const
485{
486 PyObject* obj = nullptr;
487 if (!PyArg_ParseTuple(args, "O!", &(VectorPy::Type), &obj)) {
488 return nullptr;
489 }
490
491 VectorPy* vec = static_cast<VectorPy*>(obj);
492
493 VectorPy::PointerType this_ptr = getVectorPtr();
494 VectorPy::PointerType vect_ptr = vec->getVectorPtr();
495
496 Py::Float angle(this_ptr->GetAngle(*vect_ptr));
497 return Py::new_reference_to(angle);
498}
499
500PyObject* VectorPy::normalize(PyObject* args)
501{

Callers

nothing calls this directly

Calls 2

new_reference_toFunction · 0.85
GetAngleMethod · 0.45

Tested by

no test coverage detected