You are here

public function LineString::startPoint in geoPHP 8

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

Overrides Collection::startPoint

File

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

Class

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

Code

public function startPoint() {
  return $this
    ->pointN(1);
}