public MultiUnitRect(Rect init, ScreenUnits initUnits, float pxPerU, float refRatio) { pixels = Rect.zero; units = Rect.zero; refPixels = Rect.zero; switch (initUnits) { case ScreenUnits.pixels: pixels = init; units = ScaleRect(pixels, 1 / pxPerU); refPixels = ScaleRect(pixels, refRatio); break; case ScreenUnits.units: units = init; pixels = ScaleRect(units, pxPerU); refPixels = ScaleRect(pixels, 1 / pxPerU); break; case ScreenUnits.refPixels: refPixels = init; pixels = ScaleRect(refPixels, 1 / refRatio); units = ScaleRect(pixels, 1 / pxPerU); break; } }
public Size(ScreenUnits units, double x, double y) : base(units, x, y) { }
public OverlayXY(ScreenUnits units, double x, double y) : base(units, x, y) { }
public ScreenXY(ScreenUnits units, double x, double y) { this._units = units; this._x = x; this._y = y; }