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

Function CheckVector4

engine/script/src/script_vmath.cpp:2820–2828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2818 }
2819
2820 Vector4* CheckVector4(lua_State* L, int index)
2821 {
2822 Vector4* v = (Vector4*)CheckUserType(L, index, TYPE_HASHES[SCRIPT_TYPE_VECTOR4], 0);
2823 if (!CheckVector4Components(v))
2824 {
2825 luaL_error(L, "argument #%d contains one or more values which are not numbers: vmath.vector4(%f, %f, %f, %f)", index, v->getX(), v->getY(), v->getZ(), v->getW());
2826 }
2827 return v;
2828 }
2829
2830 void PushQuat(lua_State* L, const Quat& q)
2831 {

Callers 15

LuaValueToDDFFunction · 0.85
Vector4_addFunction · 0.85
Vector4_subFunction · 0.85
Vector4_mulFunction · 0.85
Vector4_divFunction · 0.85
Vector4_concatFunction · 0.85
Matrix4_newindexFunction · 0.85
Vector4_newFunction · 0.85
Vector_ClampFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 7

CheckUserTypeFunction · 0.85
CheckVector4ComponentsFunction · 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