You are here

public function LineString::endPoint in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/geometry/LineString.class.php \LineString::endPoint()

Overrides Collection::endPoint

1 call to LineString::endPoint()
LineString::isClosed in geoPHP/lib/geometry/LineString.class.php

File

geoPHP/lib/geometry/LineString.class.php, line 34

Class

LineString
LineString. A collection of Points representing a line. A line can have more than one segment.

Code

public function endPoint() {
  $last_n = $this
    ->numPoints();
  return $this
    ->pointN($last_n);
}