Class GeometryUtils


  • public class GeometryUtils
    extends java.lang.Object
    지오메트리 관련 유틸리티를 제공하는 클래스.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double getProgress​(java.util.List<LatLng> coords, LatLng target)
      coords 경로선에서 target 좌표에 가장 근접한 지점의 진척률을 반환합니다.
      static double getProgressForCoordParts​(java.util.List<java.util.List<LatLng>> coordParts, LatLng target)
      coordParts 경로선에서 target 좌표에 가장 근접한 지점의 진척률을 반환합니다.
      • Methods inherited from class java.lang.Object

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

      • getProgress

        public static double getProgress​(@NonNull
                                         java.util.List<LatLng> coords,
                                         @NonNull
                                         LatLng target)
        coords 경로선에서 target 좌표에 가장 근접한 지점의 진척률을 반환합니다.
        Parameters:
        coords - 경로선.
        target - 좌표.
        Returns:
        진척률.
        See Also:
        PathOverlay.setProgress(double)
      • getProgressForCoordParts

        public static double getProgressForCoordParts​(@NonNull
                                                      java.util.List<java.util.List<LatLng>> coordParts,
                                                      @NonNull
                                                      LatLng target)
        coordParts 경로선에서 target 좌표에 가장 근접한 지점의 진척률을 반환합니다.
        Parameters:
        coordParts - 경로선.
        target - 좌표.
        Returns:
        진척률.
        See Also:
        MultipartPathOverlay.setProgress(double)