diff options
| author | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-10-16 14:35:46 -0400 |
|---|---|---|
| committer | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-10-16 14:35:46 -0400 |
| commit | 7bb99edd9ac78bee36b6f748f3016a27ace9afce (patch) | |
| tree | 94a67c0c01421965f2c19d3ea4ef86085864a8fa /color.py | |
| parent | Improve eel movement (diff) | |
| download | bridge-7bb99edd9ac78bee36b6f748f3016a27ace9afce.tar.zst | |
Add __unicode__ to Vector
Diffstat (limited to 'color.py')
| -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): |
