示例#1
0
        public Thickness <T> Divide(T div)
        {
            var l = _arithmetic.Divide(Left, div);
            var t = _arithmetic.Divide(Top, div);
            var r = _arithmetic.Divide(Right, div);
            var b = _arithmetic.Divide(Bottom, div);

            return(new Thickness <T>(l, t, r, b));
        }
示例#2
0
 public Size <T> Divide(T v)
 {
     return(new Size <T>(_arithmetic.Divide(Width, v), _arithmetic.Divide(Height, v)));
 }
示例#3
0
 public static Point <T> operator /(Point <T> pt, T m) => new Point <T>(_arithmetic.Divide(pt.X, m), _arithmetic.Divide(pt.Y, m));