Skip to content

Commit c95cf2c

Browse files
committed
fix: matrix4x4 formatting
1 parent 9770a52 commit c95cf2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/plugify/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def __truediv__(self, scalar):
170170
raise ValueError("Can only divide by a scalar")
171171

172172
def __repr__(self):
173-
return "\n".join([f"Row {i}: {self.m[i]}" for i in range(4)])
173+
rows = ", ".join(f"[{', '.join(map(str, r))}]" for r in self.m)
174+
return f"Matrix4x4({rows})"
174175

175176
def transpose(self):
176177
return Matrix4x4([[self.m[j][i] for j in range(4)] for i in range(4)])

0 commit comments

Comments
 (0)