Class TopoArc

  • public class TopoArc
    extends java.lang.Object
    • Constructor Detail

      • TopoArc

        public TopoArc​(java.util.List<GeoPoint> points)
    • Method Detail

      • getLatLngAt

        public LatLng getLatLngAt​(int index)
      • getGeoPointAt

        public GeoPoint getGeoPointAt​(int index)
      • getAllPoints

        public java.util.List<GeoPoint> getAllPoints()
      • getAllLatLngs

        public java.util.List<LatLng> getAllLatLngs()
      • size

        public int size()
      • containsSamePoints

        public boolean containsSamePoints​(java.util.List<LatLng> arc,
                                          int direction)
        Compare three points to decide whether the the two arcs are the same or not. We can do a throughout comparsion, but it would take more time.
        arc - The list of {@see LatLng} objects to see whether the arc exists or not
        direction - {@see #STRAIGHT_DIRECTION} or {@see #REVERSE_DIRECTION}