java.lang.Object
com.here.platform.location.inmemory.graph.Vertices

public class Vertices extends Object
Methods for manipulating vertex directions.
  • Constructor Details

    • Vertices

      public Vertices()
  • Method Details

    • directionOf

      public static com.here.platform.location.inmemory.graph.Direction directionOf(Vertex vertex)
    • directionOf

      public static com.here.platform.location.inmemory.graph.Direction directionOf(VertexIndex index)
    • toDirection

      public static Vertex toDirection(Vertex vertex, com.here.platform.location.inmemory.graph.Direction direction)
      Invert the vertex direction for vertex, if necessary.
    • toDirection

      public static VertexIndex toDirection(VertexIndex index, com.here.platform.location.inmemory.graph.Direction direction)
      Invert the vertex direction for index, if necessary.
    • invertDirection

      public static VertexIndex invertDirection(VertexIndex index)
      Calculate the index of the vertex associated with the same segment but pointing in the opposite direction from index.
    • invertDirection

      public static Vertex invertDirection(Vertex vertex)
      Returns the vertex in the opposite direction of travel.

      Each topology segment is associated with two vertices, one for each direction. Given a vertex, that corresponds to a topology segment in a direction, this method returns the one in the opposite direction.