gcode preview - first installment - wip

This commit is contained in:
Enrico Turri 2018-01-08 13:44:10 +01:00
parent 696d420dc8
commit 0f4bec8af0
25 changed files with 2552 additions and 27 deletions

View file

@ -218,6 +218,20 @@ Line::ccw(const Point& point) const
return point.ccw(*this);
}
//############################################################################################################
#if ENRICO_GCODE_PREVIEW
double Line3::length() const
{
return a.distance_to(b);
}
Vector3 Line3::vector() const
{
return Vector3(b.x - a.x, b.y - a.y, b.z - a.z);
}
#endif // ENRICO_GCODE_PREVIEW
//############################################################################################################
Pointf3
Linef3::intersect_plane(double z) const
{