Exemple #1
0
 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),
     });
 }
Exemple #2
0
 public double ConvertToUnity(double p)
 {
     return(Unit == UnitType.Cm ? DipHelper.DipToCm(p) : DipHelper.DipToInch(p));
 }