Changeset 8073 for trunk/anuga_core/source/anuga/geometry/polygon.py
- Timestamp:
- Nov 19, 2010, 2:53:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/geometry/polygon.py
r8062 r8073 4 4 5 5 import numpy as num 6 import math 6 7 7 8 from anuga.utilities.numerical_tools import ensure_numeric … … 274 275 275 276 return indices[:count] 277 278 279 def line_length(line): 280 """Determine the length of the line 281 """ 282 283 l12 = line[1]-line[0] 284 285 return math.sqrt(num.dot(l12,l12)) 276 286 277 287 def not_line_intersect(triangles, line, verbose=False):
Note: See TracChangeset
for help on using the changeset viewer.