10 #include <pybind11/operators.h> 16 void API_Py::Vector::SetModule(py::module &inModule)
18 using Vector3 = API::Math::Vector3<float>;
22 auto pyVector3 = py::class_<Vector3>(inModule,
"Vector3")
24 .def(py::init<Vector3::component_type, Vector3::component_type, Vector3::component_type>())
25 .def(py::init<const Vector3 &>())
26 .def(py::init<const Vector3::component_type>())
27 .def_readwrite(
"x", &Vector3::x)
28 .def_readwrite(
"y", &Vector3::y)
29 .def_readwrite(
"z", &Vector3::z)
30 .def(
"swap", &Vector3::swap, R
"pbdoc( 31 Exchange the contents of this vector with another. 34 [](
const Vector3 &value) {
37 return std::string(
"<wxCppPy.Vector3<float>( '") + ss.str() + std::string(
"' )>");