static int _m_DebugCircle(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector3 _center; translator.Get(L, 2, out _center);
                    double            _radius = LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.Color _color; translator.Get(L, 4, out _color);

                    gen_to_be_invoked.DebugCircle(_center, _radius, _color);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_CounterClockwiseAngle(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    double _from = LuaAPI.lua_tonumber(L, 2);
                    double _to   = LuaAPI.lua_tonumber(L, 3);

                    double gen_ret = gen_to_be_invoked.CounterClockwiseAngle(_from, _to);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_Atan2(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector3 _v; translator.Get(L, 2, out _v);

                    double gen_ret = gen_to_be_invoked.Atan2(
                        _v);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_AddCircleSegment(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    double _startAngle = LuaAPI.lua_tonumber(L, 2);
                    double _endAngle   = LuaAPI.lua_tonumber(L, 3);
                    bool   _clockwise  = LuaAPI.lua_toboolean(L, 4);
                    UnityEngine.Vector3 _center; translator.Get(L, 5, out _center);
                    System.Collections.Generic.List <UnityEngine.Vector3> _output = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 6, typeof(System.Collections.Generic.List <UnityEngine.Vector3>));
                    float _radius = (float)LuaAPI.lua_tonumber(L, 7);

                    gen_to_be_invoked.AddCircleSegment(_startAngle, _endAngle, _clockwise, _center, _output, _radius);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_ToDegrees(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    double _rad = LuaAPI.lua_tonumber(L, 2);

                    double gen_ret = gen_to_be_invoked.ToDegrees(
                        _rad);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_AngleToVector(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    double _a = LuaAPI.lua_tonumber(L, 2);

                    UnityEngine.Vector3 gen_ret = gen_to_be_invoked.AngleToVector(
                        _a);
                    translator.PushUnityEngineVector3(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_GetPath(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    Pathfinding.AdvancedSmooth.Turn _turn; translator.Get(L, 2, out _turn);
                    System.Collections.Generic.List <UnityEngine.Vector3> _output = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.Vector3>));

                    gen_to_be_invoked.GetPath(
                        _turn,
                        _output);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_Prepare(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    int _i = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3[] _vectorPath = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[]));

                    gen_to_be_invoked.Prepare(
                        _i,
                        _vectorPath);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _s_set_factorBias(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.factorBias = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_constantBias(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.constantBias);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _m_OnTangentUpdate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.OnTangentUpdate(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_TangentToTangent(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Pathfinding.AdvancedSmooth.TurnConstructor gen_to_be_invoked = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.FastGetCSObj(L, 1);



                {
                    System.Collections.Generic.List <Pathfinding.AdvancedSmooth.Turn> _turnList = (System.Collections.Generic.List <Pathfinding.AdvancedSmooth.Turn>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <Pathfinding.AdvancedSmooth.Turn>));

                    gen_to_be_invoked.TangentToTangent(_turnList);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Pathfinding.AdvancedSmooth.TurnConstructor>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    float _length = (float)LuaAPI.lua_tonumber(L, 2);
                    Pathfinding.AdvancedSmooth.TurnConstructor _constructor = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.GetObject(L, 3, typeof(Pathfinding.AdvancedSmooth.TurnConstructor));
                    int _id = LuaAPI.xlua_tointeger(L, 4);

                    Pathfinding.AdvancedSmooth.Turn gen_ret = new Pathfinding.AdvancedSmooth.Turn(_length, _constructor, _id);
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Pathfinding.AdvancedSmooth.TurnConstructor>(L, 3))
                {
                    float _length = (float)LuaAPI.lua_tonumber(L, 2);
                    Pathfinding.AdvancedSmooth.TurnConstructor _constructor = (Pathfinding.AdvancedSmooth.TurnConstructor)translator.GetObject(L, 3, typeof(Pathfinding.AdvancedSmooth.TurnConstructor));

                    Pathfinding.AdvancedSmooth.Turn gen_ret = new Pathfinding.AdvancedSmooth.Turn(_length, _constructor);
                    translator.Push(L, gen_ret);

                    return(1);
                }

                if (LuaAPI.lua_gettop(L) == 1)
                {
                    translator.Push(L, default(Pathfinding.AdvancedSmooth.Turn));
                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to Pathfinding.AdvancedSmooth.Turn constructor!"));
        }