Exemple #1
0
        public List <T> PagesBlanches(Type typeAgent, Coordonnees centre, int rayon)
        {
            int rayonCarre = rayon * rayon;

            return(this._pagesBlanches
                   .Where(a => (a.GetType() == typeAgent && centre.getDistanceCarree(a.Coord) <= rayonCarre))
                   .ToList <T>());
        }
Exemple #2
0
        public List <T> GetAgents(Coordonnees centre, int rayon)
        {
            int rayonCarre = rayon * rayon;

            return(this._pagesBlanches
                   .Where(a => (centre.getDistanceCarree(a.Coord) <= rayonCarre))
                   .ToList <T>());
        }