public UPointD(SizeF P) { _X = P.Width; _Y = P.Height; }
// 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) { }
public UPointD(PointF P) { _X = P.X; _Y = P.Y; }
// 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); }
// 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; }
public UPointD Translate(UnitD offset, UnitD zoom) { return(this + new UPointD(offset * zoom)); }
public RectangleDoubleUnit(UnitD num) : this(num, num, num, num) { }
public RectangleDoubleUnit(UnitD x, UnitD y, UnitD width, UnitD height) { Location = new UPointD(x, y); Size = new UPointD(width, height); }