Class LineSegment<P extends Position>


  • public class LineSegment<P extends Position>
    extends Object
    A portion of a line delimited (inclusively) by two Positions.
    Author:
    Karel Maesen, Geovise BVBA creation-date: 4/25/11
    • Constructor Detail

      • LineSegment

        public LineSegment​(P p0,
                           P p1)
        Constructs a LineSegment from the specified Positions.
        Parameters:
        p0 - the start Position
        p1 - the end Position
    • Method Detail

      • getStartPosition

        public P getStartPosition()
        Returns the first, or start Position of this LineSegment
        Returns:
        the first, or start Position of this LineSegment
      • getEndPosition

        public P getEndPosition()
        Returns the second, or end Position of this LineSegment
        Returns:
        the second, or end Position of this LineSegment