DoubleExtension.cs 462 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace FWindSoft.Revit
  7. {
  8. public static class DoubleExtension
  9. {
  10. public const double Coff = 304.8;
  11. public static double MmToFt(this double input)
  12. {
  13. return input / Coff;
  14. }
  15. public static double MmFromFt(this double input)
  16. {
  17. return input* Coff;
  18. }
  19. }
  20. }