Lines Matching defs:distance
94 // Equivalent to $previousPoint->distance($point) but much faster
202 $distance = 0.0;
216 $distance += $degree;
219 return $distance;
477 public function distance($geometry)
482 return $this->getGeos()->distance($geometry->getGeos());
488 return $geometry->distance($this);
491 $distance = null;
499 // Because line-segments are straight, the shortest distance will occur at an endpoint.
501 $checkDistance1 = $seg1->startPoint()->distance($seg2);
502 $checkDistance2 = $seg1->endPoint()->distance($seg2);
503 $checkDistance3 = $seg2->startPoint()->distance($seg1);
504 $checkDistance4 = $seg2->endPoint()->distance($seg1);
510 if ($distance === null || $checkDistance < $distance) {
511 $distance = $checkDistance;
515 return $distance;
518 return parent::distance($geometry);