Forgot to add __str__ overrides to the matrix and vector objects.

This commit is contained in:
2020-07-21 15:02:31 -05:00
parent 228c5136d8
commit e39eb39d2c
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -36,6 +36,13 @@ class Matrix3x3:
def __setitem__(self, key, value):
self.rows[key] = value
def __str__(self):
tmp = ""
for row in self.rows:
tmp += str(row)
tmp += "\n"
return tmp
class Matrix4x4(Matrix3x3):
def __init__(self, row1, row2, row3, row4):