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

Function Vector4_tostring

engine/script/src/script_vmath.cpp:441–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439 }
440
441 static int Vector4_tostring(lua_State *L)
442 {
443 Vector4* v = (Vector4*)lua_touserdata(L, 1);
444 lua_pushfstring(L, "vmath.%s(%f, %f, %f, %f)", SCRIPT_TYPE_NAME_VECTOR4, v->getX(), v->getY(), v->getZ(), v->getW());
445 return 1;
446 }
447
448 static int Vector4_index(lua_State *L)
449 {

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