mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update mat3x3.h
This commit is contained in:
parent
b4f5889d9c
commit
202a698a33
@ -246,6 +246,7 @@ struct PyMat3x3: Mat3x3{
|
|||||||
vm->bind_method<0>(type, "__repr__", [](VM* vm, ArgsView args){
|
vm->bind_method<0>(type, "__repr__", [](VM* vm, ArgsView args){
|
||||||
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
PyMat3x3& self = _CAST(PyMat3x3&, args[0]);
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
ss << std::fixed << std::setprecision(4);
|
||||||
ss << "mat3x3([[" << self._11 << ", " << self._12 << ", " << self._13 << "],\n";
|
ss << "mat3x3([[" << self._11 << ", " << self._12 << ", " << self._13 << "],\n";
|
||||||
ss << " [" << self._21 << ", " << self._22 << ", " << self._23 << "],\n";
|
ss << " [" << self._21 << ", " << self._22 << ", " << self._23 << "],\n";
|
||||||
ss << " [" << self._31 << ", " << self._32 << ", " << self._33 << "]])";
|
ss << " [" << self._31 << ", " << self._32 << ", " << self._33 << "]])";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user