Package org.arakhne.afc.math.graph
Interface GraphSegment<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>>
-
- Type Parameters:
PT
- is the type of node in the graphST
- is the type of edge in the graph
- All Known Subinterfaces:
RoadSegment
- All Known Implementing Classes:
RoadAStar.VirtualSegment
,RoadPolyline
,SGraphSegment
,SubRoadNetwork.WrapSegment
public interface GraphSegment<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>>
This interface representes a graph's segment.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:42
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgraph
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PT
getBeginPoint()
Replies the starting point of this segment.PT
getEndPoint()
Replies the ending point of this segment.double
getLength()
Replies the length of the segment.PT
getOtherSidePoint(PT point)
Replies the point at the other side of the segment.
-
-
-
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.
-
-