X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=Parasitemia%2FParasitemia%2FTypes.fs;h=e27f7d0760dff6a765b15ce10c5b44358d8e84ee;hb=6d99ab0dadc57e91cd846844b620fc90b52a2f96;hp=a5511426482a761143f502444e6ef6efbbf6f1c6;hpb=b070295cf67b2025164a34b6594e84f0d771cdc9;p=master-thesis.git diff --git a/Parasitemia/Parasitemia/Types.fs b/Parasitemia/Parasitemia/Types.fs index a551142..e27f7d0 100644 --- a/Parasitemia/Parasitemia/Types.fs +++ b/Parasitemia/Parasitemia/Types.fs @@ -37,6 +37,9 @@ type Ellipse (cx: float, cy: float, a: float, b: float, alpha: float) = member this.Perimeter = Math.PI * (3.0 * (this.A + this.B) - sqrt ((3.0 * this.A + this.B) * (this.A + 3.0 * this.B))) + override this.ToString () = + sprintf "(cx: %A, cy: %A, a: %A, b: %A, alpha: %A)" this.Cx this.Cy this.A this.B this.Alpha + type CellClass = HealthyRBC | InfectedRBC | Peculiar @@ -49,6 +52,7 @@ type Cell = { type Line (a: float, b: float) = member this.A = a member this.B = b + member this.Valid = not (Double.IsInfinity this.A) [] type PointD (x: float, y: float) =