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

Function Vector4_eq

engine/script/src/script_vmath.cpp:569–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 }
568
569 static int Vector4_eq(lua_State *L)
570 {
571 Vector4* v1 = ToVector4(L, 1);
572 Vector4* v2 = ToVector4(L, 2);
573 lua_pushboolean(L, v1 && v2 && v1->getX() == v2->getX() && v1->getY() == v2->getY() && v1->getZ() == v2->getZ() && v1->getW() == v2->getW());
574 return 1;
575 }
576
577 static const luaL_reg Vector4_methods[] =
578 {

Callers

nothing calls this directly

Calls 6

ToVector4Function · 0.85
lua_pushbooleanFunction · 0.85
getXMethod · 0.45
getYMethod · 0.45
getZMethod · 0.45
getWMethod · 0.45

Tested by

no test coverage detected