Skip to content

Commit

Permalink
Rename quaternion member wxyz
Browse files Browse the repository at this point in the history
  • Loading branch information
xioTechnologies authored Dec 25, 2023
1 parent 44b322f commit d5a6b9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Python/Python-C-API/Quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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 */
};

Expand Down

0 comments on commit d5a6b9c

Please sign in to comment.