Пример #1
0
        static public Vector RelativePosition(Grid A, Grid B)
        {
            Point BPos = Convert2.toPoint(B);

            return(new Vector(A.PointFromScreen(BPos).X, A.PointFromScreen(BPos).Y));
        }
Пример #2
0
        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));
        }
Пример #3
0
        static public Vector RelativePosition(Grid me, Vector Target)
        {
            Point TargetAsPoint = Convert2.toPoint(Target);

            return(Convert2.toVector(me.PointFromScreen(TargetAsPoint)));
        }