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

Function Quat_tostring

engine/script/src/script_vmath.cpp:606–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604 }
605
606 static int Quat_tostring(lua_State *L)
607 {
608 Quat* q = (Quat*)lua_touserdata(L, 1);
609 lua_pushfstring(L, "vmath.%s(%f, %f, %f, %f)", SCRIPT_TYPE_NAME_QUAT, q->getX(), q->getY(), q->getZ(), q->getW());
610 return 1;
611 }
612
613 static int Quat_index(lua_State *L)
614 {

Callers

nothing calls this directly

Calls 6

lua_touserdataFunction · 0.85
lua_pushfstringFunction · 0.85
getXMethod · 0.45
getYMethod · 0.45
getZMethod · 0.45
getWMethod · 0.45

Tested by

no test coverage detected