| 482 | } |
| 483 | |
| 484 | PyObject* 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 | |
| 500 | PyObject* VectorPy::normalize(PyObject* args) |
| 501 | { |
nothing calls this directly
no test coverage detected