Changeset 2310
- Timestamp:
- Jan 31, 2006, 5:50:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/utilities/test_polygon.py
r2200 r2310 384 384 assert inside_polygon(point, polygon) 385 385 386 #this get's into a vicious loop 387 polygon = [[1e32,1e54], [1,0], [1,1], [0,1]] 386 387 #this may get into a vicious loop 388 #polygon = [[1e32,1e54], [1,0], [1,1], [0,1]] 389 390 polygon = [[1e25,1e17], [1,0], [1,1], [0,1]] 388 391 point = point_in_polygon(polygon) 389 392 assert inside_polygon(point, polygon) … … 394 397 assert inside_polygon(point, polygon) 395 398 396 polygon = [[1e32,1e54], [-1e32,1e54], [1e32,-1e54]]399 polygon = [[1e32,1e54], [-1e32,1e54], [1e32,-1e54]] 397 400 point = point_in_polygon(polygon) 398 401 assert inside_polygon(point, polygon) 399 402 400 polygon = [[1e 32,1e54], [1,0], [0,1]]403 polygon = [[1e25,1e18], [1,0], [0,1]] 401 404 point = point_in_polygon(polygon) 402 405 assert inside_polygon(point, polygon)
Note: See TracChangeset
for help on using the changeset viewer.