protected function drawLine() { $DP2 = new DP2(); $DP2->drawline($this->_x1, $this->_y1, $this->_x2, $this->_y2); }
public function drawLine($x1, $y1, $x2, $y2) { $DP2 = new DP2(); $DP2->drawline($x1, $x2, $y1, $y2); }