@Pure
	public Direction1D getSegmentDirectionAt(int index) {
		final RoadSegment sgmt = get(index);
		assert sgmt != null;
		final RoadConnection conn = getStartingPointFor(index);
		assert conn != null;
		if (conn.equals(sgmt.getBeginPoint())) {
			return Direction1D.SEGMENT_DIRECTION;
		}
		assert conn.equals(sgmt.getEndPoint());
		return Direction1D.REVERTED_DIRECTION;
	}
@ Pure public Direction1D getSegmentDirectionAt ( int index ) { final RoadSegment sgmt = get ( index ) ; assert sgmt != null ; final RoadConnection conn = getStartingPointFor ( index ) ; assert conn != null ; if ( conn . equals ( sgmt . getBeginPoint ( ) ) ) { return Direction1D . SEGMENT_DIRECTION ; } assert conn . equals ( sgmt . getEndPoint ( ) ) ; return Direction1D . REVERTED_DIRECTION ; }
Replies the direction of this path
on the road segment at the given
index.

@param index is the index of the road segment.
@return the direction of the segment at the given index
for this path.
@since 4.0