static public Vector RelativePosition(Grid A, Grid B) { Point BPos = Convert2.toPoint(B); return(new Vector(A.PointFromScreen(BPos).X, A.PointFromScreen(BPos).Y)); }
static public Vector RelativePosition(Grid me, System.Drawing.Point Target) { Point targetAsPoint = Convert2.toPoint(Target); return(new Vector(me.PointFromScreen(targetAsPoint).X, me.PointFromScreen(targetAsPoint).Y)); }
static public Vector RelativePosition(Grid me, Vector Target) { Point TargetAsPoint = Convert2.toPoint(Target); return(Convert2.toVector(me.PointFromScreen(TargetAsPoint))); }