Esempio 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);
        }
Esempio n. 2
0
 public static Vector2 ToMonoGameVector2(this System.Numerics.Vector2 vector)
 {
     return(new Vector2(vector.X, vector.Y));
 }
Esempio n. 3
0
 public static Point ToPoint(this System.Numerics.Vector2 vector)
 {
     return(new Point((int)vector.X, (int)vector.Y));
 }