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

Function Vector4_div

engine/script/src/script_vmath.cpp:540–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538 }
539
540 static int Vector4_div(lua_State *L)
541 {
542 Vector4* v = CheckVector4(L, 1);
543 float s = (float) luaL_checknumber(L, 2);
544 PushVector4(L, *v / s);
545 return 1;
546 }
547
548 static int Vector4_unm(lua_State *L)
549 {

Callers

nothing calls this directly

Calls 3

CheckVector4Function · 0.85
luaL_checknumberFunction · 0.85
PushVector4Function · 0.85

Tested by

no test coverage detected