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

Function CheckVector3

engine/script/src/script_vmath.cpp:2802–2810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2800 }
2801
2802 Vector3* CheckVector3(lua_State* L, int index)
2803 {
2804 Vector3* v = (Vector3*)CheckUserType(L, index, TYPE_HASHES[SCRIPT_TYPE_VECTOR3], 0);
2805 if (!CheckVector3Components(v))
2806 {
2807 luaL_error(L, "argument #%d contains one or more values which are not numbers: vmath.vector3(%f, %f, %f)", index, v->getX(), v->getY(), v->getZ());
2808 }
2809 return v;
2810 }
2811
2812 void PushVector4(lua_State* L, const Vector4& v)
2813 {

Callers 15

Script_SetPositionFunction · 0.85
LuaValueToDDFFunction · 0.85
Vector3_addFunction · 0.85
Vector3_subFunction · 0.85
Vector3_mulFunction · 0.85
Vector3_divFunction · 0.85
Vector3_concatFunction · 0.85
Vector3_newFunction · 0.85
Quat_FromToFunction · 0.85
Quat_AxisAngleFunction · 0.85

Calls 6

CheckUserTypeFunction · 0.85
CheckVector3ComponentsFunction · 0.85
luaL_errorFunction · 0.85
getXMethod · 0.45
getYMethod · 0.45
getZMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68