Esempio n. 1
0
        // tolerance 0.0001 degree = 10 meters
        public bool almostAs(object obj, double tolerance)
        {
            if (obj == null)
            {
                return(false);
            }
            GeoPosition other = (GeoPosition)obj;

            other.Normalize();
            Normalize();
            return(Math.Abs(other.Lat - m_Y) <= tolerance && Math.Abs(other.Lng - m_X) <= tolerance);            // && other.Elev == m_H;
        }
Esempio n. 2
0
        public bool sameAs(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            GeoPosition other = (GeoPosition)obj;

            other.Normalize();
            Normalize();
            return(other.Lat == m_Y && other.Lng == m_X);            // && other.Elev == m_H;
        }