Changeset 6000 for anuga_core/source/anuga/utilities/test_polygon.py
- Timestamp:
- Nov 26, 2008, 3:25:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/test_polygon.py
r5942 r6000 1557 1557 polygon = [[0,0], [1,1], [2,0], [1, -1]] 1558 1558 assert polygon_area(polygon) == 2.0 1559 1560 # Complex case where numerical errors might occur 1561 polygon = [[314037.58727982, 6224952.2960092], 1562 [314038.58727982, 6224952.2960092], 1563 [314038.58727982, 6224953.2960092], 1564 [314037.58727982, 6224953.2960092]] 1565 assert polygon_area(polygon) == 1.0 1566 1559 1567 1560 1568 def test_poly_xy(self):
Note: See TracChangeset
for help on using the changeset viewer.