Ejemplo n.º 1
0
        public override bool TestPoint(Vector2 point)
        {
            var test = new EngineShapes.PolygonShape(1.0f);

            test.Set(new Vertices(
                         Points.Select(x => new Xna.Vector2(x.X, x.Y)).ToList()));

            var transform = new Transform();

            transform.SetIdentity();
            var mouseXna = new Xna.Vector2(point.X, point.Y);

            return(test.TestPoint(ref transform, ref mouseXna));
        }