Package org.geolatte.geom
Class LineSegment<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.LineSegment<P>
-
-
Constructor Summary
Constructors Constructor Description LineSegment(P p0, P p1)Constructs aLineSegmentfrom the specifiedPositions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgetEndPosition()Returns the second, or endPositionof thisLineSegmentPgetStartPosition()Returns the first, or startPositionof thisLineSegment
-
-
-
Method Detail
-
getStartPosition
public P getStartPosition()
Returns the first, or startPositionof thisLineSegment- Returns:
- the first, or start
Positionof thisLineSegment
-
getEndPosition
public P getEndPosition()
Returns the second, or endPositionof thisLineSegment- Returns:
- the second, or end
Positionof thisLineSegment
-
-