isVertex method

bool isVertex()

Tests whether this location refers to a vertex

@return true if the location is a vertex

Implementation

bool isVertex() {
  return segmentFraction <= 0.0 || segmentFraction >= 1.0;
}