public RectangleDoubleUnit(UnitD num) : this(num,num,num,num) { }
public UPointD(SizeF P) { _X = P.Width; _Y = P.Height; }
public RectangleDoubleUnit(UnitD x, UnitD y, UnitD width, UnitD height) { Location = new UPointD(x,y); Size = new UPointD(width,height); }
public UPointD Translate(UnitD offset, UnitD zoom) { return (this+new UPointD(offset*zoom)); }
public UPointD(PointF P) { _X = P.X; _Y = P.Y; }
// 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(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); }
/// <summary>Flattens the calling point</summary> public void Flatten(bool roundUp) { UPointD? f = Flat(roundUp); this.X = f.Value.X; this.Y = f.Value.Y; f = null; }
public UPointD(UnitD x, UnitD y) { _X = x; _Y = y; }
public void CopyPoint(UPointD inPoint) { X=inPoint.X; Y=inPoint.Y; }