/** * Returns the last <code>Point</code> of this <code>LineString</code>. * * @return the last <code>Point</code> of this <code>LineString</code>. */ public Point getEndPoint() { return isEmpty() ? Points.createEmpty() : getPointN(getNumPoints() - 1); }
/** * Returns the first <code>Point</code> of this <code>LineString</code>. * * @return the first <code>Point</code> of this <code>LineString</code>. */ public Point getStartPoint() { return isEmpty() ? Points.createEmpty() : getPointN(0); }