Ejemplo n.º 1
0
        // I/F
        public bool Contains(IntVector3 eyePosition, IntVector3 point)
        {
            int distanceSquared;

            IntVector3.DistanceSquared(ref eyePosition, ref point, out distanceSquared);

            return(distanceSquared <= radiusSquared);
        }
Ejemplo n.º 2
0
        // I/F
        public bool Contains(IntVector3 eyePosition, IntVector3 point)
        {
            if (point.Y < minY + eyePosition.Y)
            {
                return(false);
            }

            int distanceSquared;

            IntVector3.DistanceSquared(ref eyePosition, ref point, out distanceSquared);

            return(distanceSquared <= radiusSquared);
        }