Beispiel #1
0
        /// <summary>
        /// Computes the Discrete Hausdorff Distance of two <see cref="IGeometry"/>s.
        /// </summary>
        /// <param name="g0">A geometry</param>
        /// <param name="g1">A geometry</param>
        /// <param name="densifyFraction">The densify fraction. A value of 0 indicates, that no densification should take place</param>
        /// <returns>The Discrete Hausdorff Distance</returns>
        public static double Distance(IGeometry g0, IGeometry g1, double densifyFraction)
        {
            var dist = new DiscreteHausdorffDistance(g0, g1);

            dist.DensifyFraction = densifyFraction;
            return(dist.Distance());
        }
Beispiel #2
0
        /// <summary>
        /// Computes the Discrete Hausdorff Distance of two <see cref="IGeometry"/>s.
        /// </summary>
        /// <param name="g0">A geometry</param>
        /// <param name="g1">A geometry</param>
        /// <returns>The Discrete Hausdorff Distance</returns>
        public static double Distance(IGeometry g0, IGeometry g1)
        {
            var dist = new DiscreteHausdorffDistance(g0, g1);

            return(dist.Distance());
        }