- member this.isOutside (width: float) (height: float) =
- this.Cx <= 0.0 || this.Cx >= width ||
- this.Cy <= 0.0 || this.Cy >= height ||
- this.CutAVericalLine 0.0 || this.CutAVericalLine width ||
- this.CutAnHorizontalLine 0.0 || this.CutAnHorizontalLine height
+ // Approximation of Ramanujan.
+ member this.Perimeter =
+ PI * (3.f * (this.A + this.B) - sqrt ((3.f * this.A + this.B) * (this.A + 3.f * 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