コード例 #1
0
ファイル: Polygon.php プロジェクト: pepin82/geometry
 /**
  * @param \Geometry\Points $points
  * @throws \InvalidArgumentException
  */
 public function __construct(Points $points)
 {
     if (!$points->isClosed()) {
         throw new \InvalidArgumentException("points are not closed");
     }
     $this->points = $points;
 }