Commit 8b1c12e7 authored by Peter Eastman's avatar Peter Eastman
Browse files

Implemented deepcopy for Vec3

parent 1f24260a
......@@ -44,3 +44,6 @@ class Vec3(tuple):
def __div__(self, other):
"""Divide a Vec3 by a constant."""
return Vec3(self[0]/other, self[1]/other, self[2]/other)
def __deepcopy__(self, memo):
return Vec3(self[0], self[1], self[2])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment