public static RectangleF operator *(T_Viewport tvp, RectangleF r) { PointF p1 = tvp.ApplyTo(new PointF(r.Right, r.Top)); PointF p2 = tvp.ApplyTo(new PointF(r.Left, r.Bottom)); return(Vector2D.Rect(p1, p2)); }
public static RectangleF operator *(RectangleF r, T_StretchMove2D tsm) { Vector2D p1 = new Vector2D((float)r.Right, (float)r.Top) * tsm; Vector2D p2 = new Vector2D((float)r.Left, (float)r.Bottom) * tsm; return(Vector2D.Rect(p1, p2)); }