Lines Matching refs:point

39         foreach ($array as $point) {
40 $points[] = Point::fromArray($point);
56 * Returns the 1-based Nth point of the LineString.
59 * @param int $n Nth point of the LineString
92 foreach ($this->getPoints() as $point) {
94 // Equivalent to $previousPoint->distance($point) but much faster
96 pow(($previousPoint->x() - $point->x()), 2) +
97 pow(($previousPoint->y() - $point->y()), 2)
100 $x += ($previousPoint->x() + $point->x()) / 2 * $segmentLength;
101 $y += ($previousPoint->y() + $point->y()) / 2 * $segmentLength;
103 $previousPoint = $point;
127 foreach ($this->getPoints() as $point) {
130 pow(($previousPoint->x() - $point->x()), 2) +
131 pow(($previousPoint->y() - $point->y()), 2)
134 $previousPoint = $point;
144 foreach ($this->getPoints() as $point) {
147 pow(($previousPoint->x() - $point->x()), 2) +
148 pow(($previousPoint->y() - $point->y()), 2) +
149 pow(($previousPoint->z() - $point->z()), 2)
152 $previousPoint = $point;
206 $point = $points[$i];
210 sin(deg2rad($point->y())) * sin(deg2rad($nextPoint->y())) +
211 cos(deg2rad($point->y())) * cos(deg2rad($nextPoint->y())) *
212 cos(deg2rad(abs($point->x() - $nextPoint->x())))
300 foreach ($this->getPoints() as $point) {
301 if ($point->hasZ() && $point->z() < $min) {
302 $min = $point->z();
311 foreach ($this->getPoints() as $point) {
312 if ($point->hasZ() && $point->z() > $max) {
313 $max = $point->z();
343 foreach ($this->getPoints() as $i => $point) {
344 if (abs($point->z() - $lastEle) > $verticalTolerance || $i === $pointCount - 1) {
345 if ($point->z() > $lastEle) {
346 $gain += $point->z() - $lastEle;
348 $lastEle = $point->z();
368 foreach ($this->getPoints() as $i => $point) {
369 if (abs($point->z() - $lastEle) > $verticalTolerance || $i === $pointCount - 1) {
370 if ($point->z() < $lastEle) {
371 $loss += $lastEle - $point->z();
373 $lastEle = $point->z();
382 foreach ($this->getPoints() as $point) {
383 if ($point->isMeasured() && $point->m() < $min) {
384 $min = $point->m();
393 foreach ($this->getPoints() as $point) {
394 if ($point->isMeasured() && $point->m() > $max) {
395 $max = $point->m();