| 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 | { |