/// <summary>
 /// Computes the area of the polygon according to
 /// "Fast Polygon Area and Newell Normal Computation"
 ///  journal of graphics tools, 7(2):9-13, 2002. The
 ///  absolute value is returned (i.e. area >= 0.0).
 /// </summary>
 public static double ComputeArea(this Polygon2d polygon)
 => polygon.ComputeSignedArea().Abs();
Exemple #2
0
 /// <summary>
 /// Computes the area of the polygon according to
 /// "Fast Polygon Area and Newell Normal Computation"
 ///  journal of graphics tools, 7(2):9-13, 2002. The
 ///  absolute value is returned (i.e. area >= 0.0).
 /// </summary>
 public static double ComputeArea(this Polygon2d polygon)
 {
     return(polygon.ComputeSignedArea().Abs());
 }