예제 #1
0
파일: Point.php 프로젝트: Coutume/zRoutard
 public function get3dDistance(IPoint &$point)
 {
     $distance = sqrt(pow($point->getX() - $this->x, 2) + pow($point->getY() - $this->y, 2) + pow($point->getZ() - $this->z, 2));
     return $distance;
 }