Exemplo n.º 1
0
        protected override bool ComputeCursor(out System.Numerics.Vector2 value)
        {
            if (!_projectionAction(Input.Value.AsMonoGameVector()).Any(out Projection <Vector2> sceneProjection))
            {
                value = default;
                return(false);
            }

            value = sceneProjection.Value.AsSystemVector();
            return(true);
        }
Exemplo n.º 2
0
 public static Vector2 ToMonoGameVector2(this System.Numerics.Vector2 vector)
 {
     return(new Vector2(vector.X, vector.Y));
 }
Exemplo n.º 3
0
 public static Point ToPoint(this System.Numerics.Vector2 vector)
 {
     return(new Point((int)vector.X, (int)vector.Y));
 }