You are here

public function LineString::numPoints in geoPHP 8

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

Overrides Collection::numPoints

3 calls to LineString::numPoints()
LineString::endPoint in geoPHP/lib/geometry/LineString.class.php
LineString::greatCircleLength in geoPHP/lib/geometry/LineString.class.php
LineString::haversineLength in geoPHP/lib/geometry/LineString.class.php

File

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

Class

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

Code

public function numPoints() {
  return $this
    ->numGeometries();
}