C# 클래스 MapAround.Geometry.DistanceCalculator

Calculates a distances. This class allows to find the Euclidean distance between two plane geometries . Supports Points, MultiPoints, Polylines and Polygons. All other geometries, for example, the bounding rectangle or the line segment should be converted to these four.
파일 보기 프로젝트 열기: gkrsu/maparound.core

공개 메소드들

메소드 설명
EuclideanDistance ( IGeometry geometry1, IGeometry geometry2, double threshold ) : double

Calculates the Euclidean distance between two geometries.

MinimumEuclideanDistance ( IGeometry geometry1, IGeometry geometry2 ) : double

Computes the minimum Euclidean distance between two geometries.

비공개 메소드들

메소드 설명
calculateDistanceBrutForce ( IGeometry geometry1, IGeometry geometry2, List points1, List points2, double threshold ) : double
calculateSegmentsPointsDistance ( List chains, List points, double minDistance, double threshold ) : double
checkGeometry ( IGeometry geometry ) : void
getGeometryChains ( IGeometry geometry ) : List
hasPointInside ( Polygon polygon, List points ) : bool

메소드 상세

EuclideanDistance() 공개 정적인 메소드

Calculates the Euclidean distance between two geometries.
public static EuclideanDistance ( IGeometry geometry1, IGeometry geometry2, double threshold ) : double
geometry1 IGeometry First geometry
geometry2 IGeometry Second geometry
threshold double The threshold value of the distance /// at which a search is terminated
리턴 double

MinimumEuclideanDistance() 공개 정적인 메소드

Computes the minimum Euclidean distance between two geometries.
public static MinimumEuclideanDistance ( IGeometry geometry1, IGeometry geometry2 ) : double
geometry1 IGeometry First geometry
geometry2 IGeometry Second geometry
리턴 double