public function drawLine($xStart, $yStart, $zStart, $xEnd, $yEnd, $zEnd)
	{
		$this->setCode("(line)");
		$this->setCode("G0 X{$xStart} Y{$yStart} Z{$this->spindleAxisStartPosition}");
		$this->setCode("G1 Z{$zStart}");
		
		// testing tool setup tool metric M8 diameter 4mm
		$this->setCode("T1 M08");
		$this->setCode("G41 D4");
		
		$this->setCode("G1 X{$xStart} Y{$yStart} Z{$zStart}");
		$this->setCode("G1 X{$xEnd} Y{$yEnd} Z{$zEnd}");

		$this->setCode("G0 Z{$this->spindleAxisStartPosition}");
		$this->setCode("G0 X{$xStart} Y{$yStart}");
		$this->setCode("(/line)\n");
		
		return $this;
	}
public function drawLine($xStart, $yStart, $zStart, $xEnd, $yEnd, $zEnd)
	{
		$this->setCode("(line)");
		$this->setCode("G0 X{$xStart} Y{$yStart} Z{$this->spindleAxisStartPosition}");
		$this->setCode("G1 Z{$zStart}");
		
		// testing tool setup tool metric M8 diameter 4mm
		$this->setCode("T1 M08");
		$this->setCode("G41 D4");
		
		$this->setCode("G1 X{$xStart} Y{$yStart} Z{$zStart}");
		$this->setCode("G1 X{$xEnd} Y{$yEnd} Z{$zEnd}");

		$this->setCode("G0 Z{$this->spindleAxisStartPosition}");
		$this->setCode("G0 X{$xStart} Y{$yStart}");
		$this->setCode("(/line)\n");
		
		return $this;
	}
public function drawLine ( $ xStart , $ yStart , $ zStart , $ xEnd , $ yEnd , $ zEnd ) { $ this -> setCode ( "(line)" ) ; $ this -> setCode ( "G0 X{$xStart} Y{$yStart} Z{$this->spindleAxisStartPosition}" ) ; $ this -> setCode ( "G1 Z{$zStart}" ) ; // testing tool setup tool metric M8 diameter 4mm $ this -> setCode ( "T1 M08" ) ; $ this -> setCode ( "G41 D4" ) ; $ this -> setCode ( "G1 X{$xStart} Y{$yStart} Z{$zStart}" ) ; $ this -> setCode ( "G1 X{$xEnd} Y{$yEnd} Z{$zEnd}" ) ; $ this -> setCode ( "G0 Z{$this->spindleAxisStartPosition}" ) ; $ this -> setCode ( "G0 X{$xStart} Y{$yStart}" ) ; $ this -> setCode ( "(/line)\n" ) ; return $ this ; }
Draw a line on a XY plane

@param float $xStart
@param float $yStart
@param float $zStart
@param float $xEnd
@param float $yEnd
@param float $zEnd
@return \GCode
Draw a line on a XY plane