/** * Computes the intersection point between this segment and another one. * * @param s a segment * @return the intersection point, or <code>null</code> if there is none */ public Coordinate intersection(Segment s) { return ls.intersection(s.getLineSegment()); }
Coordinate intPt = intersection(line); if (intPt != null) { return new Coordinate[] { intPt, intPt };
/** * Computes the intersection point between this segment and another one. * * @param s a segment * @return the intersection point, or <code>null</code> if there is none */ public Coordinate intersection(Segment s) { return ls.intersection(s.getLineSegment()); }
Coordinate intPt = intersection(line); if (intPt != null) { return new Coordinate[] { intPt, intPt };