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