Example #1
0
 /**
  * @param Point $point1
  * @param Point $point2
  *
  * @return $this
  */
 public function setCoordinatesFromPoints(Point $point1, Point $point2)
 {
     $this->coordinates = [$point1->getCoordinates(), $point2->getCoordinates()];
     return $this;
 }