Skip to content

Commit 600d9fa

Browse files
committed
vector3d/vec3d_rotate.c: corrected the gimbals enum
1 parent 9121d63 commit 600d9fa

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • electrostatic-sandbox-framework/electrostatic-core/src/libs/electrostatic-primer/electronetsoft/algorithm/arithmos/vector3d

electrostatic-sandbox-framework/electrostatic-core/src/libs/electrostatic-primer/electronetsoft/algorithm/arithmos/vector3d/vec3d_rotate.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct rotation_metadata {
88
};
99

1010
typedef enum {
11-
GIMBAL_X = 200,
11+
GIMBAL_X = (INT16_MAX >> 8) ^ INT16_MAX,
1212
GIMBAL_Y = GIMBAL_X - 1,
1313
GIMBAL_Z = GIMBAL_Y - 1
1414
} vector_gimbal;
@@ -85,7 +85,6 @@ static inline status_code init_rotator_gimbal(vector3d *axis, matrix *__rotator,
8585
vec_component *angle1,
8686
vec3d_gimbal *gimbal) {
8787
if (get_vec_gimbal(axis) == GIMBAL_Z) {
88-
fprintf(stdout, "Order rotation around Z\n");
8988
// rotate around z-axis
9089
// pre-processing automata
9190
// Let the X-axis in the R(3) space be the X-axis in the 2D projection.
@@ -102,7 +101,6 @@ static inline status_code init_rotator_gimbal(vector3d *axis, matrix *__rotator,
102101
*angle1 = gimbal->z_gimbal;
103102

104103
} else if (get_vec_gimbal(axis) == GIMBAL_Y) {
105-
fprintf(stdout, "Order rotation around Y\n");
106104
// rotate around y-axis
107105
// pre-processing automata
108106
// Let the X-axis in the R(3) space be the X-axis in the 2D projection.
@@ -118,7 +116,6 @@ static inline status_code init_rotator_gimbal(vector3d *axis, matrix *__rotator,
118116
gimbal->y_gimbal += angle;
119117
*angle1 = gimbal->y_gimbal;
120118
} else if (get_vec_gimbal(axis) == GIMBAL_X) {
121-
fprintf(stdout, "Order rotation around X\n");
122119

123120
// rotate around x-axis
124121
// pre-processing automata

0 commit comments

Comments
 (0)