public function drawBox($x1, $y1, $z1, $x2, $y2, $z2)
	{
		$this->setCode("(box)");
		$this->setCode("G0 X{$x1} Y{$y1} Z{$this->spindleAxisStartPosition} (move to spindle axis start position)");
		$this->setCode("G1 Z{$z1}");
		$this->setCode("G1 X{$x1} Y{$y1} Z{$z1}");
		$this->setCode("G1 Y{$y2}");
		$this->setCode("G1 X{$x2}");
		$this->setCode("G1 Y{$y1}");
		$this->setCode("G1 X{$x1}");
		$this->setCode("G0 Z{$z2}");
		$this->setCode("(/box)\n");

		return $this;
	}
public function drawBox($x1, $y1, $z1, $x2, $y2, $z2)
	{
		$this->setCode("(box)");
		$this->setCode("G0 X{$x1} Y{$y1} Z{$this->spindleAxisStartPosition} (move to spindle axis start position)");
		$this->setCode("G1 Z{$z1}");
		$this->setCode("G1 X{$x1} Y{$y1} Z{$z1}");
		$this->setCode("G1 Y{$y2}");
		$this->setCode("G1 X{$x2}");
		$this->setCode("G1 Y{$y1}");
		$this->setCode("G1 X{$x1}");
		$this->setCode("G0 Z{$z2}");
		$this->setCode("(/box)\n");

		return $this;
	}
public function drawBox ( $ x1 , $ y1 , $ z1 , $ x2 , $ y2 , $ z2 ) { $ this -> setCode ( "(box)" ) ; $ this -> setCode ( "G0 X{$x1} Y{$y1} Z{$this->spindleAxisStartPosition} (move to spindle axis start position)" ) ; $ this -> setCode ( "G1 Z{$z1}" ) ; $ this -> setCode ( "G1 X{$x1} Y{$y1} Z{$z1}" ) ; $ this -> setCode ( "G1 Y{$y2}" ) ; $ this -> setCode ( "G1 X{$x2}" ) ; $ this -> setCode ( "G1 Y{$y1}" ) ; $ this -> setCode ( "G1 X{$x1}" ) ; $ this -> setCode ( "G0 Z{$z2}" ) ; $ this -> setCode ( "(/box)\n" ) ; return $ this ; }
Draw a box on a XY plane

@param float $x1
@param float $y1
@param float $z1
@param float $x2
@param float $y2
@param float $z2
@return \GCode
Draw a box on a XY plane