예제 #1
0
        /// <summary>
        /// Distances the specified other.
        /// </summary>
        /// <param name="other">The other.</param>
        /// <returns></returns>
        public double Distance(LatLonAlt other)
        {
            Point p1 = new Point(this.Lon, this.Lat);
            Point p2 = new Point(other.Lon, other.Lat);

            return(p1.Distance(p2));
        }
예제 #2
0
        /// <summary>
        /// Distances the specified other.
        /// </summary>
        /// <param name="other">The other.</param>
        /// <returns></returns>
        public double Distance(LatLonAlt other)
        {
            NetTopologySuite.Geometries.Point p1 = new NetTopologySuite.Geometries.Point(Lon, Lat);
            NetTopologySuite.Geometries.Point p2 = new NetTopologySuite.Geometries.Point(other.Lon, other.Lat);

            return(p1.Distance(p2));
        }