Exemple #1
0
 /**
  * Point2D constructor.
  *
  * @param int|float $x Position on OX axis.
  * @param int|float $y Position on OY axis.
  */
 public function __construct($x, $y)
 {
     parent::__construct($x);
     $this->checkY($y);
     $this->y = $y;
 }