diff options
| -rw-r--r-- | color.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -50,6 +50,12 @@ class Vector(object): new_y = self.x * sintheta + self.y * costheta return self.__class__(new_x, new_y) + def __unicode__(self): + return '<{}, {}, {}>'.format(self.x, self.y, self.z) + + def __str__(self): + return unicode(self) + @property def components(self): |
