Exemplo n.º 1
0
 public UPointD(SizeF P)
 {
     _X = P.Width; _Y = P.Height;
 }
Exemplo n.º 2
0
//		public UPointD(int value) : this(value,value) {  }
//		public UPointD(long value) : this(value,value) {  }
//		public UPointD(float value) : this((UnitD)value,(UnitD)value) {  }
        public UPointD(UnitD value) : this(value, value)
        {
        }
Exemplo n.º 3
0
 public UPointD(PointF P)
 {
     _X = P.X; _Y = P.Y;
 }
Exemplo n.º 4
0
//		public UPointD(decimal x, decimal y){ _X = x; _Y = y; }
        public UPointD(UnitD x, UnitD y, UnitType type)
        {
            _X = new UnitD(x, type); _Y = new UnitD(y, type);
        }
Exemplo n.º 5
0
//		static public implicit operator UPointD(Point s){ return new UPointD(s); }
//		static public implicit operator UPointD(PointF s){ return new UPointD(s); }
        #endregion

        public UPointD(UnitD x, UnitD y)
        {
            _X = x; _Y = y;
        }
Exemplo n.º 6
0
 public UPointD Translate(UnitD offset, UnitD zoom)
 {
     return(this + new UPointD(offset * zoom));
 }
Exemplo n.º 7
0
 public RectangleDoubleUnit(UnitD num) : this(num, num, num, num)
 {
 }
Exemplo n.º 8
0
 public RectangleDoubleUnit(UnitD x, UnitD y, UnitD width, UnitD height)
 {
     Location = new UPointD(x, y); Size = new UPointD(width, height);
 }