*** empty log message ***

This commit is contained in:
Joe Shochet 2001-08-09 01:32:38 +00:00
parent 94b4150e11
commit 6603e2cb20

View File

@ -323,6 +323,17 @@ def intersection(a, b):
d.append(i)
return d
def union(a, b):
"""
union(list, list):
"""
# Copy a
c = a[:]
for i in b:
if (i not in c):
c.append(i)
return c
def reduceAngle(deg):
"""
Reduces an angle (in degrees) to a value between -180. and 180.