double X
The x coordinate.
Definition: GCodeLineEntry.h:12
Holds the parameter of the extruder read from the input .gcode file.
Definition: GCodeLineEntry.h:8
static double distance(const GCodeLineEntry &A, const GCodeLineEntry &B) noexcept
Angle ABC (in degrees) between two segments (i.e. three points).
Definition: GCodeLineEntry.cpp:14
GCodeLineEntry(short g, double x, double y, double e) noexcept
Constructor.
Definition: GCodeLineEntry.h:23
double E
Length of the filament to extrude.
Definition: GCodeLineEntry.h:16
static GCodeLineEntry point_between(const GCodeLineEntry &A, const GCodeLineEntry &B, const double d) noexcept
Creates a point on the segment AB with a specified distance from the second point.
Definition: GCodeLineEntry.cpp:22
double Y
The y coordinate.
Definition: GCodeLineEntry.h:14
short G
The extruder index.
Definition: GCodeLineEntry.h:10
static double angle(const GCodeLineEntry &A, const GCodeLineEntry &B, const GCodeLineEntry &C) noexcept
Distance between the coordinates of two entries.
Definition: GCodeLineEntry.cpp:35