Class DefaultDistanceStrategy

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getDistance​(int zoom, Node node1, Node node2)
      줌 레벨이 zoom일 때 node1node2간의 화면상 거리를 반환합니다.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultDistanceStrategy

        public DefaultDistanceStrategy()
    • Method Detail

      • getDistance

        @WorkerThread
        public double getDistance​(int zoom,
                                  @NonNull
                                  Node node1,
                                  @NonNull
                                  Node node2)
        줌 레벨이 zoom일 때 node1node2간의 화면상 거리를 반환합니다.
        Specified by:
        getDistance in interface DistanceStrategy
        Parameters:
        zoom - 거리를 측정할 줌 레벨.
        node1 - 거리를 측정할 첫 번째 Node 객체.
        node2 - 거리를 측정할 두 번째 Node 객체.
        Returns:
        node1node2간의 화면상 거리. DP 단위.