From 7ede64e7d42f82b7a576f59f200dd8e3f2098223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 23 Jul 2021 14:15:05 +0200 Subject: [PATCH] python: whoopsie. A lot of them. Though, unlike with the C++ side, I still don't think writing exhaustive tests for all these accessors is worth the time spent. --- src/python/magnum/math.range.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/python/magnum/math.range.cpp b/src/python/magnum/math.range.cpp index d1bdeda..56f7b78 100644 --- a/src/python/magnum/math.range.cpp +++ b/src/python/magnum/math.range.cpp @@ -166,8 +166,8 @@ template void range2D(py::class_& c) { .def("y", &T::y, "Range in the Y axis") .def("size_x", &T::sizeX, "Range width") .def("size_y", &T::sizeY, "Range height") - .def("center_x", &T::sizeX, "Range center on X axis") - .def("center_y", &T::sizeY, "Range center on Y axis"); + .def("center_x", &T::centerX, "Range center on X axis") + .def("center_y", &T::centerY, "Range center on Y axis"); } template void range3D(py::class_& c) { @@ -282,14 +282,14 @@ template void range3D(py::class_& c) { /* Methods */ .def("x", &T::x, "Range in the X axis") .def("y", &T::y, "Range in the Y axis") - .def("z", &T::y, "Range in the Z axis") + .def("z", &T::z, "Range in the Z axis") .def("xy", &T::xy, "Range in the XY plane") .def("size_x", &T::sizeX, "Range width") .def("size_y", &T::sizeY, "Range height") .def("size_z", &T::sizeZ, "Range depth") - .def("center_x", &T::sizeX, "Range center on X axis") - .def("center_y", &T::sizeY, "Range center on Y axis") - .def("center_z", &T::sizeY, "Range center on Z axis"); + .def("center_x", &T::centerX, "Range center on X axis") + .def("center_y", &T::centerY, "Range center on Y axis") + .def("center_z", &T::centerZ, "Range center on Z axis"); } template class Type, UnsignedInt dimensions, class T, class ...Args> void convertibleImplementation(py::class_, Args...>& c, std::false_type) {