Exemple #1
0
 /**
  * Create new Point as a subtraction of the current one and the given
  * @param IPointGlobal $point
  * @return Point
  */
 public function subtract(IPointGlobal $point)
 {
     return new Point($this->latitude - $point->getLatitude(), $this->longitude - $point->getLongitude());
 }