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

Function Vector4_mul

engine/script/src/script_vmath.cpp:523–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 }
522
523 static int Vector4_mul(lua_State *L)
524 {
525 Vector4* v = ToVector4(L, 1);
526 float s;
527 if (v != 0)
528 {
529 s = (float) luaL_checknumber(L, 2);
530 }
531 else
532 {
533 s = (float) luaL_checknumber(L, 1);
534 v = CheckVector4(L, 2);
535 }
536 PushVector4(L, *v * s);
537 return 1;
538 }
539
540 static int Vector4_div(lua_State *L)
541 {

Callers

nothing calls this directly

Calls 4

ToVector4Function · 0.85
luaL_checknumberFunction · 0.85
CheckVector4Function · 0.85
PushVector4Function · 0.85

Tested by

no test coverage detected