mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-19 16:16:13 +00:00
🩹 Fix some vector_3 cast operators
This commit is contained in:
parent
a5c5bb9660
commit
83922dd4e6
1 changed files with 2 additions and 2 deletions
|
@ -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 float &v) { return vector_3(x * v, y * v, z * v); }
|
||||
|
||||
operator xy_float_t() { return xy_float_t({ x, y }); }
|
||||
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) }); }
|
||||
|
||||
void debug(FSTR_P const title);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue