Geometry.GetArea 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件填充區域 Geometry 的面積。
多載
| 名稱 | Description |
|---|---|
| GetArea() |
取得物件填滿區域 Geometry 的面積。 |
| GetArea(Double, ToleranceType) |
取得物體填充區域 Geometry 在指定公差範圍內的面積。 |
GetArea(Double, ToleranceType)
取得物體填充區域 Geometry 在指定公差範圍內的面積。
public:
virtual double GetArea(double tolerance, System::Windows::Media::ToleranceType type);
[System.Security.SecurityCritical]
public virtual double GetArea(double tolerance, System.Windows.Media.ToleranceType type);
public virtual double GetArea(double tolerance, System.Windows.Media.ToleranceType type);
[<System.Security.SecurityCritical>]
abstract member GetArea : double * System.Windows.Media.ToleranceType -> double
override this.GetArea : double * System.Windows.Media.ToleranceType -> double
abstract member GetArea : double * System.Windows.Media.ToleranceType -> double
override this.GetArea : double * System.Windows.Media.ToleranceType -> double
Public Overridable Function GetArea (tolerance As Double, type As ToleranceType) As Double
參數
- tolerance
- Double
幾何多邊形近似值點之間的距離上限。 較小的值會產生更精確的結果,但會導致執行速度較慢。 若 tolerance 小於 .000001,則改用 .000001。
- type
- ToleranceType
ToleranceType其中一個值是用來決定容差因子是絕對值還是相對於幾何面積的值。
傳回
幾何中填充區域的面積。
- 屬性
備註
有些 Geometry 方法(例如 GetArea)會產生或使用幾何形狀的多邊形近似。 容差因子指定了此多邊形近似中點間的最大距離。 較小的公差值產生更好的近似,但比公差因子較大的近似需要更多處理。