Index: modules/math/geometry.test ================================================================== --- modules/math/geometry.test +++ modules/math/geometry.test @@ -518,10 +518,17 @@ math::geometry::rectangleInsidePolygon {5 5} {6 6} {2 4 6 9 2 9 5 4} } 0 test geometry-16.9 {geometry::rectangleInsidePolygon, infinityLine crosses point instead of line segment} { math::geometry::rectangleInsidePolygon {5 5} {6 6} {4 4 4 7 7 7 7 4} } 1 + + + +# - areaPolygon {-10 -10 10 -10 10 10 -10 10} +# Result: 400 + + ### ### test geometry-17.0 {point constructor} { @@ -614,8 +621,15 @@ test geometry-19.6 {geometry::degToRad} { ::math::geometry::degToRad 180.0 } [expr {acos(-1.0)}] +## +# areaPolygon +## + +test geometry-20.0 {geometry::areaPolygon} { + math::geometry::areaPolygon {-10 -10 10 -10 10 10 -10 10} +} 400 ### testsuiteCleanup