addEndpoint method

void addEndpoint(
  1. Map endPoints,
  2. Coordinate p,
  3. bool isClosed
)

Add an endpoint to the map, creating an entry for it if none exists

Implementation

void addEndpoint(Map endPoints, Coordinate p, bool isClosed) {
  EndpointInfo eiInfo = endPoints[p] as EndpointInfo;
  if (eiInfo == null) {
    eiInfo = new EndpointInfo(p);
    endPoints[p] = eiInfo;
  }
  eiInfo.addEndpoint(isClosed);
}