Ejemplo n.º 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>());
        }
Ejemplo n.º 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>());
        }