From 202a698a338ab9932dc9e25a86d1971d006537cc Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 11 May 2023 18:40:30 +0800 Subject: [PATCH] Update mat3x3.h --- src/mat3x3.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mat3x3.h b/src/mat3x3.h index efc05eaf..6f9d9752 100644 --- a/src/mat3x3.h +++ b/src/mat3x3.h @@ -246,6 +246,7 @@ struct PyMat3x3: Mat3x3{ vm->bind_method<0>(type, "__repr__", [](VM* vm, ArgsView args){ PyMat3x3& self = _CAST(PyMat3x3&, args[0]); std::stringstream ss; + ss << std::fixed << std::setprecision(4); ss << "mat3x3([[" << self._11 << ", " << self._12 << ", " << self._13 << "],\n"; ss << " [" << self._21 << ", " << self._22 << ", " << self._23 << "],\n"; ss << " [" << self._31 << ", " << self._32 << ", " << self._33 << "]])";