Exemple #1
0
 public function triangle(Point $point1, Point $point2, Point $point3, Color $color)
 {
     if (!$point1->isInImage($this) || !$point2->isInImage($this) || !$point3->isInImage($this)) {
         throw new IllegalArgumentException();
     }
     $this->line($point1, $point2, $this->prepareColor($color));
     $this->line($point2, $point3, $this->prepareColor($color));
     $this->line($point3, $point1, $this->prepareColor($color));
 }
Exemple #2
0
 public function __destruct()
 {
     $this->z = NULL;
     parent::__destruct();
 }