My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

point_t.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #ifndef __POINT_T__
  23. #define __POINT_T__
  24. struct point_t {
  25. float x;
  26. float y;
  27. float z;
  28. float e;
  29. point_t(float const x, float const y)
  30. : point_t(x, y, NAN, NAN) {}
  31. point_t(float const x, float const y, float const z)
  32. : point_t(x, y, z, NAN) {}
  33. point_t(float const x, float const y, float const z, float const e) {
  34. this->x = x;
  35. this->y = y;
  36. this->z = z;
  37. this->e = e;
  38. }
  39. };
  40. #endif