public class PolygonFrechetDistance extends Object
| Modifier and Type | Field and Description |
|---|---|
double[][] |
a |
double[][] |
b |
double[][] |
c |
double[][] |
d |
| Constructor and Description |
|---|
PolygonFrechetDistance(Polygon p1,
Polygon p2)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(Double[] a)
Performs the standard binary search using two comparisons per level.
|
Double[] |
computeCriticalValues() |
double |
computeFrechetDistance() |
double |
getFrechetPointToPolygonDistance(Point p,
Polygon poly) |
boolean |
isFrechet(double epsilon) |
public double[][] a
public double[][] b
public double[][] c
public double[][] d
public double computeFrechetDistance()
public double getFrechetPointToPolygonDistance(Point p, Polygon poly)
p - Pointpoly - Polygonpublic Double[] computeCriticalValues()
public int binarySearch(Double[] a)
a - array to carry out binary search in itpublic boolean isFrechet(double epsilon)
Copyright © 2018. All rights reserved.