isCoordinate method
Returns true if the given point is a vertex of this LineString
.
@param pt the Coordinate
to check
@return true
if pt
is one of this LineString
's vertices
Implementation
bool isCoordinate(Coordinate pt) {
for (int i = 0; i < points.size(); i++) {
if (points.getCoordinate(i).equals(pt)) {
return true;
}
}
return false;
}