Contains() public method

public Contains ( IPoint3D p ) : bool
p IPoint3D
return bool
Beispiel #1
0
        public static BaseMulti FindMultiAt(IPoint2D loc, Map map)
        {
            Sector sector = map.GetSector(loc);

            for (int i = 0; i < sector.Multis.Count; i++)
            {
                BaseMulti multi = sector.Multis[i];

                if (multi != null && multi.Contains(loc.X, loc.Y))
                {
                    return(multi);
                }
            }

            return(null);
        }
Beispiel #2
0
        public static List <BaseMulti> GetMultisAt(IPoint2D loc, Map map)
        {
            List <BaseMulti> m_Multis = new List <BaseMulti>();

            if (map == null || map == Map.Internal)
            {
                return(null);
            }

            Sector sector = map.GetSector(loc);

            for (int i = 0; i < sector.Multis.Count; i++)
            {
                BaseMulti multi = sector.Multis[i];

                if (multi.Contains(loc.X, loc.Y))
                {
                    m_Multis.Add(multi);
                }
            }

            return(m_Multis);
        }