public Point ConvertToUnity(Point p) { return(new Point() { X = Unit == UnitType.Cm ? DipHelper.DipToCm(p.X) : DipHelper.DipToInch(p.X), Y = Unit == UnitType.Cm ? DipHelper.DipToCm(p.Y) : DipHelper.DipToInch(p.Y), }); }
public double ConvertToUnity(double p) { return(Unit == UnitType.Cm ? DipHelper.DipToCm(p) : DipHelper.DipToInch(p)); }