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

Function CheckQuat

engine/script/src/script_vmath.cpp:2838–2846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2836 }
2837
2838 Quat* CheckQuat(lua_State* L, int index)
2839 {
2840 Quat* q = (Quat*)CheckUserType(L, index, TYPE_HASHES[SCRIPT_TYPE_QUAT], 0);
2841 if (!CheckQuatComponents(q))
2842 {
2843 luaL_error(L, "argument #%d contains one or more values which are not numbers: vmath.quat(%f, %f, %f, %f)", index, q->getX(), q->getY(), q->getZ(), q->getW());
2844 }
2845 return q;
2846 }
2847
2848 void PushMatrix4(lua_State* L, const Matrix4& m)
2849 {

Callers 15

Script_SetRotationFunction · 0.85
LuaValueToDDFFunction · 0.85
Quat_mulFunction · 0.85
Quat_concatFunction · 0.85
Quat_newFunction · 0.85
Matrix4_QuatFunction · 0.85
ConjFunction · 0.85
RotateFunction · 0.85
Matrix4_ComposeFunction · 0.85
QuatToEulerFunction · 0.85
TEST_FFunction · 0.85

Calls 7

CheckUserTypeFunction · 0.85
CheckQuatComponentsFunction · 0.85
luaL_errorFunction · 0.85
getXMethod · 0.45
getYMethod · 0.45
getZMethod · 0.45
getWMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68