def METHOD_NAME(self, travel: Vector, f: float, e: float) -> str:
    # Note that only G1 moves are written, since extrusion is included.
    if f <= 0.0:
        return f"G1 X{travel.x:.5f} Y{travel.y:.5f} Z{travel.z:.5f} E{e:.5f}"
    else:
        return f"G1 F{f:.5f} X{travel.x:.5f} Y{travel.y:.5f} Z{travel.z:.5f} E{e:.5f}"