python: apply const method annotations to impls.
This commit is contained in:
@@ -294,7 +294,7 @@ PyObject* RotationPy::invert(PyObject* args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
PyObject* RotationPy::inverted(PyObject* args)
|
||||
PyObject* RotationPy::inverted(PyObject* args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, "")) {
|
||||
return nullptr;
|
||||
@@ -303,7 +303,7 @@ PyObject* RotationPy::inverted(PyObject* args)
|
||||
return new RotationPy(new Rotation(mult));
|
||||
}
|
||||
|
||||
PyObject* RotationPy::multiply(PyObject* args)
|
||||
PyObject* RotationPy::multiply(PyObject* args) const
|
||||
{
|
||||
PyObject* rot {};
|
||||
if (!PyArg_ParseTuple(args, "O!", &(RotationPy::Type), &rot)) {
|
||||
@@ -313,7 +313,7 @@ PyObject* RotationPy::multiply(PyObject* args)
|
||||
return new RotationPy(new Rotation(mult));
|
||||
}
|
||||
|
||||
PyObject* RotationPy::multVec(PyObject* args)
|
||||
PyObject* RotationPy::multVec(PyObject* args) const
|
||||
{
|
||||
PyObject* obj {};
|
||||
if (!PyArg_ParseTuple(args, "O!", &(VectorPy::Type), &obj)) {
|
||||
@@ -324,7 +324,7 @@ PyObject* RotationPy::multVec(PyObject* args)
|
||||
return new VectorPy(new Vector3d(vec));
|
||||
}
|
||||
|
||||
PyObject* RotationPy::slerp(PyObject* args)
|
||||
PyObject* RotationPy::slerp(PyObject* args) const
|
||||
{
|
||||
PyObject* rot {};
|
||||
double t {};
|
||||
@@ -349,7 +349,7 @@ PyObject* RotationPy::setYawPitchRoll(PyObject* args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
PyObject* RotationPy::getYawPitchRoll(PyObject* args)
|
||||
PyObject* RotationPy::getYawPitchRoll(PyObject* args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, "")) {
|
||||
return nullptr;
|
||||
@@ -386,7 +386,7 @@ PyObject* RotationPy::setEulerAngles(PyObject* args)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* RotationPy::toEulerAngles(PyObject* args)
|
||||
PyObject* RotationPy::toEulerAngles(PyObject* args) const
|
||||
{
|
||||
const char* seq = nullptr;
|
||||
if (!PyArg_ParseTuple(args, "|s", &seq)) {
|
||||
@@ -416,7 +416,7 @@ PyObject* RotationPy::toEulerAngles(PyObject* args)
|
||||
PY_CATCH
|
||||
}
|
||||
|
||||
PyObject* RotationPy::toMatrix(PyObject* args)
|
||||
PyObject* RotationPy::toMatrix(PyObject* args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, "")) {
|
||||
return nullptr;
|
||||
@@ -439,7 +439,7 @@ PyObject* RotationPy::isSame(PyObject* args)
|
||||
return Py_BuildValue("O", (same ? Py_True : Py_False));
|
||||
}
|
||||
|
||||
PyObject* RotationPy::isIdentity(PyObject* args)
|
||||
PyObject* RotationPy::isIdentity(PyObject* args) const
|
||||
{
|
||||
double tol = 0.0;
|
||||
if (!PyArg_ParseTuple(args, "|d", &tol)) {
|
||||
@@ -449,7 +449,7 @@ PyObject* RotationPy::isIdentity(PyObject* args)
|
||||
return Py_BuildValue("O", (null ? Py_True : Py_False));
|
||||
}
|
||||
|
||||
PyObject* RotationPy::isNull(PyObject* args)
|
||||
PyObject* RotationPy::isNull(PyObject* args) const
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, "")) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user