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

Function Vector3_div

engine/script/src/script_vmath.cpp:375–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373 }
374
375 static int Vector3_div(lua_State *L)
376 {
377 Vector3* v = CheckVector3(L, 1);
378 float s = (float) luaL_checknumber(L, 2);
379 PushVector3(L, *v / s);
380 return 1;
381 }
382
383 static int Vector3_unm(lua_State *L)
384 {

Callers

nothing calls this directly

Calls 3

CheckVector3Function · 0.85
luaL_checknumberFunction · 0.85
PushVector3Function · 0.85

Tested by

no test coverage detected