Пример #1
0
        public static double Distance(Geometry g1, Geometry g2)
        {
            if (_cacheGeom != g1)
            {
                _fastDistanceOp = new IndexedFacetDistance(g1);
                _cacheGeom      = g1;
            }

            return(_fastDistanceOp.Distance(g2));
        }
 public void RunIndexedLinePoint()
 {
     double dist = IndexedFacetDistance.Distance(geom1, pt2);
 }
 public void RunIndexedLines()
 {
     double dist = IndexedFacetDistance.Distance(geom1, geom2);
 }
 protected override double Distance(Geometry g1, Geometry g2)
 {
     return(IndexedFacetDistance.Distance(g1, g2));
 }
Пример #5
0
 public static double DistanceIndexed(Geometry a, Geometry b)
 {
     return(IndexedFacetDistance.Distance(a, b));
 }