We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b00096 commit 5aca6ffCopy full SHA for 5aca6ff
Marlin/src/libs/vector_3.h
@@ -75,8 +75,8 @@ struct vector_3 {
75
vector_3 operator-(const vector_3 &v) { return vector_3(x - v.x, y - v.y, z - v.z); }
76
vector_3 operator*(const float &v) { return vector_3(x * v, y * v, z * v); }
77
78
- operator xy_float_t() { return xy_float_t({ x, y }); }
79
- operator xyz_float_t() { return xyz_float_t({ x, y, z }); }
+ operator xy_float_t() { return xy_float_t({ x OPTARG(HAS_Y_AXIS, y) }); }
+ operator xyz_float_t() { return xyz_float_t({ x OPTARG(HAS_Y_AXIS, y) OPTARG(HAS_Z_AXIS, z) }); }
80
81
void debug(FSTR_P const title);
82
};
0 commit comments