Wiki
Clone wikiGCode Editor / gen / MovementCommand
Documentation
public MovementCommand(String code, float[] destination, boolean absolute, boolean fastmove)
Creates a new movement command
- Parameters:
destination
— position (change) represented by this command as a {x, y, z, e} vector; see absoluteabsolute
— Represents whether this is an absolute or relative command.fastmove
— False if this movement uses linear interpolation (results may vary; not all firmware interprets this the same and hardware setups vary)
public float[] apply(float[] vec, float[] commandOffset)
Translates a vector by the movement represented by this command.
- Parameters:
vec
— a vector to translate in format {x, y, z, e}commandOffset
—- Returns: The input vector translated by the movement this command represents.
Updated