MCPcopy Create free account
hub / github.com/defold/defold / Matrix4_tostring

Function Matrix4_tostring

engine/script/src/script_vmath.cpp:728–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726 }
727
728 static int Matrix4_tostring(lua_State *L)
729 {
730 Matrix4* m = (Matrix4*)lua_touserdata(L, 1);
731 lua_pushfstring(L, "vmath.%s(%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f)", SCRIPT_TYPE_NAME_MATRIX4,
732 m->getElem(0, 0), m->getElem(1, 0), m->getElem(2, 0), m->getElem(3, 0),
733 m->getElem(0, 1), m->getElem(1, 1), m->getElem(2, 1), m->getElem(3, 1),
734 m->getElem(0, 2), m->getElem(1, 2), m->getElem(2, 2), m->getElem(3, 2),
735 m->getElem(0, 3), m->getElem(1, 3), m->getElem(2, 3), m->getElem(3, 3));
736 return 1;
737 }
738
739 static int Matrix4_index(lua_State *L)
740 {

Callers

nothing calls this directly

Calls 3

lua_touserdataFunction · 0.85
lua_pushfstringFunction · 0.85
getElemMethod · 0.45

Tested by

no test coverage detected