diff --git a/src/python/magnum/math.vector.h b/src/python/magnum/math.vector.h index 7f6cc0b..0495dd6 100644 --- a/src/python/magnum/math.vector.h +++ b/src/python/magnum/math.vector.h @@ -432,11 +432,11 @@ template void vector2(py::class_>& c) { /* Properties */ .def_property("x", - static_cast::*)() const>(&Math::Vector2::x), + static_cast::*)() const>(&Math::Vector2::x), [](Math::Vector2& self, T value) { self.x() = value; }, "X component") .def_property("y", - static_cast::*)() const>(&Math::Vector2::y), + static_cast::*)() const>(&Math::Vector2::y), [](Math::Vector2& self, T value) { self.y() = value; }, "Y component"); } @@ -473,28 +473,28 @@ template void vector3(py::class_>& c) { /* Properties */ .def_property("x", - static_cast::*)() const>(&Math::Vector3::x), + static_cast::*)() const>(&Math::Vector3::x), [](Math::Vector3& self, T value) { self.x() = value; }, "X component") .def_property("y", - static_cast::*)() const>(&Math::Vector3::y), + static_cast::*)() const>(&Math::Vector3::y), [](Math::Vector3& self, T value) { self.y() = value; }, "Y component") .def_property("z", - static_cast::*)() const>(&Math::Vector3::z), + static_cast::*)() const>(&Math::Vector3::z), [](Math::Vector3& self, T value) { self.z() = value; }, "Z component") .def_property("r", - static_cast::*)() const>(&Math::Vector3::r), + static_cast::*)() const>(&Math::Vector3::r), [](Math::Vector3& self, T value) { self.r() = value; }, "R component") .def_property("g", - static_cast::*)() const>(&Math::Vector3::g), + static_cast::*)() const>(&Math::Vector3::g), [](Math::Vector3& self, T value) { self.g() = value; }, "G component") .def_property("b", - static_cast::*)() const>(&Math::Vector3::b), + static_cast::*)() const>(&Math::Vector3::b), [](Math::Vector3& self, T value) { self.b() = value; }, "B component") @@ -517,36 +517,36 @@ template void vector4(py::class_>& c) { /* Properties */ .def_property("x", - static_cast::*)() const>(&Math::Vector4::x), + static_cast::*)() const>(&Math::Vector4::x), [](Math::Vector4& self, T value) { self.x() = value; }, "X component") .def_property("y", - static_cast::*)() const>(&Math::Vector4::y), + static_cast::*)() const>(&Math::Vector4::y), [](Math::Vector4& self, T value) { self.y() = value; }, "Y component") .def_property("z", - static_cast::*)() const>(&Math::Vector4::z), + static_cast::*)() const>(&Math::Vector4::z), [](Math::Vector4& self, T value) { self.z() = value; }, "Z component") .def_property("w", - static_cast::*)() const>(&Math::Vector4::w), + static_cast::*)() const>(&Math::Vector4::w), [](Math::Vector4& self, T value) { self.w() = value; }, "W component") .def_property("r", - static_cast::*)() const>(&Math::Vector4::r), + static_cast::*)() const>(&Math::Vector4::r), [](Math::Vector4& self, T value) { self.r() = value; }, "R component") .def_property("g", - static_cast::*)() const>(&Math::Vector4::g), + static_cast::*)() const>(&Math::Vector4::g), [](Math::Vector4& self, T value) { self.g() = value; }, "G component") .def_property("b", - static_cast::*)() const>(&Math::Vector4::b), + static_cast::*)() const>(&Math::Vector4::b), [](Math::Vector4& self, T value) { self.b() = value; }, "B component") .def_property("a", - static_cast::*)() const>(&Math::Vector4::a), + static_cast::*)() const>(&Math::Vector4::a), [](Math::Vector4& self, T value) { self.a() = value; }, "A component")