getNumPoints method

int getNumPoints()
override

Returns the count of this Geometrys vertices. The Geometry s contained by composite Geometrys must be Geometry's; that is, they must implement getNumPoints

@return the number of vertices in this Geometry

Implementation

int getNumPoints() {
  int numPoints = 0;
  for (int i = 0; i < geometries.length; i++) {
    numPoints += (geometries[i] as Geometry).getNumPoints();
  }
  return numPoints;
}