static int vec2_len(lua_State* L) { Vector2f* self = check_vec2(L, 1); lua_pushnumber(L, self->Len()); return 1; }