Esempio n. 1
0
        public bool PositionInLight(Vector2 position)
        {
            // if the angle isn't zero, then it's a cone-shaped light TODO: this isn't actually true
            if (Angle != 0)
            {
                return(XnaHelper.IsPointInsideTriangle(GetVertices(), position));
            }

            return(false);
        }