mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 04:29:34 +00:00
🩹 Fix some vector_3 cast operators
This commit is contained in:
parent
7b000966f0
commit
5aca6ff4f2
@ -75,8 +75,8 @@ struct vector_3 {
|
|||||||
vector_3 operator-(const vector_3 &v) { return vector_3(x - v.x, y - v.y, z - v.z); }
|
vector_3 operator-(const vector_3 &v) { return vector_3(x - v.x, y - v.y, z - v.z); }
|
||||||
vector_3 operator*(const float &v) { return vector_3(x * v, y * v, z * v); }
|
vector_3 operator*(const float &v) { return vector_3(x * v, y * v, z * v); }
|
||||||
|
|
||||||
operator xy_float_t() { return xy_float_t({ x, y }); }
|
operator xy_float_t() { return xy_float_t({ x OPTARG(HAS_Y_AXIS, y) }); }
|
||||||
operator xyz_float_t() { return xyz_float_t({ x, y, z }); }
|
operator xyz_float_t() { return xyz_float_t({ x OPTARG(HAS_Y_AXIS, y) OPTARG(HAS_Z_AXIS, z) }); }
|
||||||
|
|
||||||
void debug(FSTR_P const title);
|
void debug(FSTR_P const title);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user