MCPcopy Create free account
hub / github.com/crownengine/crown / lua_save_data_write_matrix4x4

Function lua_save_data_write_matrix4x4

src/lua/lua_api.cpp:611–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611static void lua_save_data_write_matrix4x4(StringStream &sjson, const char *type, const Matrix4x4 &m)
612{
613 sjson << "{ type = \"" << type << "\" data = [ ";
614 sjson << m.x.x << " " << m.x.y << " " << m.x.z << " " << m.x.w << " ";
615 sjson << m.y.x << " " << m.y.y << " " << m.y.z << " " << m.y.w << " ";
616 sjson << m.z.x << " " << m.z.y << " " << m.z.z << " " << m.z.w << " ";
617 sjson << m.t.x << " " << m.t.y << " " << m.t.z << " " << m.t.w;
618 sjson << " ] }";
619}
620
621static bool lua_save_data_table_collides_with_typed_object(lua_State *L, int i)
622{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected