projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update coding style.
[master-thesis.git]
/
Parasitemia
/
ParasitemiaCore
/
UnitsOfMeasure.fs
diff --git
a/Parasitemia/ParasitemiaCore/UnitsOfMeasure.fs
b/Parasitemia/ParasitemiaCore/UnitsOfMeasure.fs
index
637f49e
..
4af1e55
100644
(file)
--- a/
Parasitemia/ParasitemiaCore/UnitsOfMeasure.fs
+++ b/
Parasitemia/ParasitemiaCore/UnitsOfMeasure.fs
@@
-6,12
+6,12
@@
[<Measure>] type inch
[<Measure>] type ppi = px / inch // Pixel per inch.
[<Measure>] type inch
[<Measure>] type ppi = px / inch // Pixel per inch.
-let μm
InchRatio
= 25.4e3<μm/inch>
-let mm
InchRatio
= 25.4<mm/inch>
+let μm
PerInch
= 25.4e3<μm/inch>
+let mm
PerInch
= 25.4<mm/inch>
-let μmToInch
(x: float<μm>) : float<inch> = x / μmInchRatio
-let inchToμm
(x: float<inch>) : float<μm> = x * μmInchRatio
+let μmToInch
(x : float<μm>) : float<inch> = x / μmPerInch
+let inchToμm
(x : float<inch>) : float<μm> = x * μmPerInch
-let mmToInch
(x: float<mm>) : float<inch> = x / mmInchRatio
-let inchTomm
(x: float<inch>) : float<mm> = x * mmInchRatio
+let mmToInch
(x : float<mm>) : float<inch> = x / mmPerInch
+let inchTomm
(x : float<inch>) : float<mm> = x * mmPerInch