We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9770a52 commit c95cf2cCopy full SHA for c95cf2c
lib/plugify/plugin.py
@@ -170,7 +170,8 @@ def __truediv__(self, scalar):
170
raise ValueError("Can only divide by a scalar")
171
172
def __repr__(self):
173
- return "\n".join([f"Row {i}: {self.m[i]}" for i in range(4)])
+ rows = ", ".join(f"[{', '.join(map(str, r))}]" for r in self.m)
174
+ return f"Matrix4x4({rows})"
175
176
def transpose(self):
177
return Matrix4x4([[self.m[j][i] for j in range(4)] for i in range(4)])
0 commit comments