コード例 #1
0
ファイル: Images.php プロジェクト: rendix2/QW_MVS
 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));
 }
コード例 #2
0
ファイル: Point3D.php プロジェクト: rendix2/QW_MVS
 public function __destruct()
 {
     $this->z = NULL;
     parent::__destruct();
 }