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

Function Vector3_tostring

engine/script/src/script_vmath.cpp:285–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 static int Vector3_tostring(lua_State *L)
286 {
287 Vector3* v = (Vector3*)lua_touserdata(L, 1);
288 lua_pushfstring(L, "vmath.%s(%f, %f, %f)", SCRIPT_TYPE_NAME_VECTOR3, v->getX(), v->getY(), v->getZ());
289 return 1;
290 }
291
292 static int Vector3_index(lua_State *L)
293 {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected