Interface GraphSegment<ST extends GraphSegment<ST,​PT>,​PT extends GraphPoint<PT,​ST>>

    • Method Detail

      • getBeginPoint

        @Pure
        PT getBeginPoint()
        Replies the starting point of this segment.
        Returns:
        the starting point of this segment.
      • getEndPoint

        @Pure
        PT getEndPoint()
        Replies the ending point of this segment.
        Returns:
        the ending point of this segment.
      • getOtherSidePoint

        @Pure
        PT getOtherSidePoint​(PT point)
        Replies the point at the other side of the segment.
        Parameters:
        point - the reference point.
        Returns:
        the point at the other side of the segment.
      • getLength

        @Pure
        double getLength()
        Replies the length of the segment.
        Returns:
        the length of the segment.