EllipseGeometry.GetArea(Double, ToleranceType) 方法

定義

取得這個 EllipseGeometry 的區域。

public:
 override double GetArea(double tolerance, System::Windows::Media::ToleranceType type);
public override double GetArea (double tolerance, System.Windows.Media.ToleranceType type);
override this.GetArea : double * System.Windows.Media.ToleranceType -> double
Public Overrides Function GetArea (tolerance As Double, type As ToleranceType) As Double

參數

tolerance
Double

在幾何多邊形近似法中,點之間的距離上限。 值越小,產生的結果越精確,但執行過程也會比較慢。 如果 tolerance 小於 .000001,則會改用 .000001。

type
ToleranceType

其中一個列舉值、AbsoluteRelative,指定容錯因數為絕對值或相對於這個幾何區域的值。

傳回

Double

這個橢圓形的填滿區域。

備註

某些 Geometry 方法 (例如 GetArea) 產生或使用幾何的多邊形近似值。 容錯因數會指定此多邊形近似值中點之間的最大距離。 較小的容錯值會產生較佳的近似值,但需要比具有大型容錯因數的近似值更多的處理。

適用於