X-Git-Url: http://git.euphorik.ch/?p=master-thesis.git;a=blobdiff_plain;f=Parasitemia%2FParasitemiaCore%2FTypes.fs;fp=Parasitemia%2FParasitemiaCore%2FTypes.fs;h=7bfbd7f26718a4e33de160f7b33d4aa23d7c39e9;hp=e2accb7b98da738690a38085078fde075c846878;hb=cb90b01c85183b2c75ee6d22b378b3ca99df6bf3;hpb=074d6b0377f51e868deb1c427891c722d0270deb diff --git a/Parasitemia/ParasitemiaCore/Types.fs b/Parasitemia/ParasitemiaCore/Types.fs index e2accb7..7bfbd7f 100644 --- a/Parasitemia/ParasitemiaCore/Types.fs +++ b/Parasitemia/ParasitemiaCore/Types.fs @@ -35,7 +35,7 @@ type Ellipse (cx: float32, cy: float32, a: float32, b: float32, alpha: float32) this.CutAVericalLine 0.f || this.CutAVericalLine width || this.CutAnHorizontalLine 0.f || this.CutAnHorizontalLine height - member this.Scale (factor: float32) = + member this.Scale (factor: float32) : Ellipse = Ellipse(this.Cx, this.Cy, this.A * factor, this.B * factor, alpha) // Approximation of Ramanujan. @@ -68,8 +68,10 @@ type MaybeBuilder () = member this.ReturnFrom (x) = x member this.TryFinally (body, compensation) = - try this.ReturnFrom(body()) - finally compensation() + try + this.ReturnFrom(body()) + finally + compensation() member this.Using (disposable: 'a when 'a :> IDisposable, body) = let body' = fun () -> body disposable