public bool IsPointClose(Coordonnees c2, double precision)
        {
            bool ret_val;

            ret_val = MathUtile.Pythagore(Latitude, Longitude, c2, precision);
            return(ret_val);
        }
Пример #2
0
        public int CompareTo(Polyline other)
        {
            double d1 = MathUtile.Longueur(this.Collection);
            double d2 = MathUtile.Longueur(other.Collection);

            return(d1.CompareTo(d2));
        }
Пример #3
0
 public bool Equals(Polyline other)
 {
     if (other == null)
     {
         return(false);
     }
     return(MathUtile.Longueur(this.Collection).Equals(MathUtile.Longueur(other.Collection)));
 }
Пример #4
0
        public bool IsPointClose(Coordonnees c2, double precision)
        {
            int  i = 1;
            bool ret_val;
            bool PointClose = false;

            for (i = 1; i < this.GetNumberOfPoint(); i++)
            {
                Coordonnees coord1 = Collection[i];
                Coordonnees coord2 = Collection[i - 1];

                ret_val = MathUtile.DistanceLignePoint(coord1, coord2, c2, precision);

                if (ret_val == true)
                {
                    PointClose = true;
                }
            }
            return(PointClose);
        }