new StraightLine(index, start, parsedCommand, settings) → {StraightLine}
Creates an instance of the StraightLine class. This class does the
computations for the G0 and G1 commands.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The line number where this command appears. |
start |
Point | The 3D start point. |
parsedCommand |
ParsedCommand | The parsed command. |
settings |
Settings | The modularity settings. |
Returns:
An instance of the StraightLine class.
- Type
- StraightLine
Methods
getSize() → {Size}
Returns the size of the line.
Returns:
The size.
- Type
- Size
returnLine() → {Line}
Returns a line object of type "G0" or "G1" (corresponding to
parsedCommand).
Returns:
The line object.
- Type
- Line