Base: add factory method to Vector2dPy

This commit is contained in:
wmayer
2021-11-14 18:18:38 +01:00
parent 414f4d706e
commit 50523fe951
2 changed files with 17 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ inline Vector3<T> getVectorFromTuple(PyObject* o)
class BaseExport Vector2dPy : public Py::PythonClass<Vector2dPy>
{
public:
static Py::PythonClassObject<Vector2dPy> create(const Vector2d&);
static Py::PythonClassObject<Vector2dPy> create(double x, double y);
Vector2dPy(Py::PythonClassInstance *self, Py::Tuple &args, Py::Dict &kwds);
virtual ~Vector2dPy();