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

Function Quat_eq

engine/script/src/script_vmath.cpp:695–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693 }
694
695 static int Quat_eq(lua_State *L)
696 {
697 Quat* q1 = ToQuat(L, 1);
698 Quat* q2 = ToQuat(L, 2);
699 lua_pushboolean(L, q1 && q2 && q1->getX() == q2->getX() && q1->getY() == q2->getY() && q1->getZ() == q2->getZ() && q1->getW() == q2->getW());
700 return 1;
701 }
702
703 static const luaL_reg Quat_methods[] =
704 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected