mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
94b4150e11
commit
6603e2cb20
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user