getIntersectionAlongSegment method

Coordinate getIntersectionAlongSegment(
  1. int segmentIndex,
  2. int intIndex
)

Computes the intIndex'th intersection point in the direction of a specified input line segment

@param segmentIndex is 0 or 1 @param intIndex is 0 or 1

@return the intIndex'th intersection point in the direction of the specified input line segment

Implementation

Coordinate getIntersectionAlongSegment(int segmentIndex, int intIndex) {
  // lazily compute int line array
  computeIntLineIndex();
  return intPt[intLineIndex![segmentIndex][intIndex]];
}