getEndpoint method
Gets an endpoint of an input segment.
@param segmentIndex the index of the input segment (0 or 1) @param ptIndex the index of the endpoint (0 or 1) @return the specified endpoint
Implementation
Coordinate? getEndpoint(int segmentIndex, int ptIndex) {
return inputLines[segmentIndex][ptIndex];
}