From 5998d7fd8b3af67daf04d9403657dc46666c2fbc Mon Sep 17 00:00:00 2001 From: x-io Technologies Date: Mon, 25 Dec 2023 17:32:11 +0000 Subject: [PATCH] Rename quaternion member wxyz --- Python/Python-C-API/Quaternion.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Python/Python-C-API/Quaternion.h b/Python/Python-C-API/Quaternion.h index 60f45c5..410c938 100644 --- a/Python/Python-C-API/Quaternion.h +++ b/Python/Python-C-API/Quaternion.h @@ -38,7 +38,7 @@ static void quaternion_free(Quaternion *self) { Py_TYPE(self)->tp_free(self); } -static PyObject *quaternion_get_array(Quaternion *self) { +static PyObject *quaternion_get_wxyz(Quaternion *self) { const npy_intp dims[] = {4}; return PyArray_SimpleNewFromData(1, dims, NPY_FLOAT, self->quaternion.array); } @@ -80,11 +80,11 @@ static PyObject *quaternion_to_euler(Quaternion *self, PyObject *args) { } static PyGetSetDef quaternion_get_set[] = { - {"array", (getter) quaternion_get_array, NULL, "", NULL}, - {"w", (getter) quaternion_get_w, NULL, "", NULL}, - {"x", (getter) quaternion_get_x, NULL, "", NULL}, - {"y", (getter) quaternion_get_y, NULL, "", NULL}, - {"z", (getter) quaternion_get_z, NULL, "", NULL}, + {"wxyz", (getter) quaternion_get_wxyz, NULL, "", NULL}, + {"w", (getter) quaternion_get_w, NULL, "", NULL}, + {"x", (getter) quaternion_get_x, NULL, "", NULL}, + {"y", (getter) quaternion_get_y, NULL, "", NULL}, + {"z", (getter) quaternion_get_z, NULL, "", NULL}, {NULL} /* sentinel */ };