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

Function Vector3_eq

engine/script/src/script_vmath.cpp:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 static int Vector3_eq(lua_State *L)
405 {
406 Vector3* v1 = ToVector3(L, 1);
407 Vector3* v2 = ToVector3(L, 2);
408 lua_pushboolean(L, v1 && v2 && v1->getX() == v2->getX() && v1->getY() == v2->getY() && v1->getZ() == v2->getZ());
409 return 1;
410 }
411
412 static const luaL_reg Vector3_methods[] =
413 {

Callers

nothing calls this directly

Calls 5

ToVector3Function · 0.85
lua_pushbooleanFunction · 0.85
getXMethod · 0.45
getYMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected