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

Function CheckMatrix4Components

engine/script/src/script_vmath.cpp:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 static inline bool CheckMatrix4Components(Matrix4* m)
118 {
119 return
120 !isnan(m->getElem(0, 0)) && !isnan(m->getElem(1, 0)) && !isnan(m->getElem(2, 0)) && !isnan(m->getElem(3, 0)) &&
121 !isnan(m->getElem(0, 1)) && !isnan(m->getElem(1, 1)) && !isnan(m->getElem(2, 1)) && !isnan(m->getElem(3, 1)) &&
122 !isnan(m->getElem(0, 2)) && !isnan(m->getElem(1, 2)) && !isnan(m->getElem(2, 2)) && !isnan(m->getElem(3, 2)) &&
123 !isnan(m->getElem(0, 3)) && !isnan(m->getElem(1, 3)) && !isnan(m->getElem(2, 3)) && !isnan(m->getElem(3, 3));
124 }
125
126 static ScriptUserType CheckUserData(lua_State* L, int index, void** userdata)
127 {

Callers 2

CheckUserDataFunction · 0.85
CheckMatrix4Function · 0.85

Calls 1

getElemMethod · 0.45

Tested by

no test coverage detected