static object PerformMemberwiseClone(ref object o)
        {
            var ins = new UnityEngine.Pose();

            ins = (UnityEngine.Pose)o;
            return(ins);
        }
示例#2
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && translator.Assignable <UnityEngine.Quaternion>(L, 3))
                {
                    UnityEngine.Vector3    _position; translator.Get(L, 2, out _position);
                    UnityEngine.Quaternion _rotation; translator.Get(L, 3, out _rotation);

                    UnityEngine.Pose gen_ret = new UnityEngine.Pose(_position, _rotation);
                    translator.Push(L, gen_ret);

                    return(1);
                }

                if (LuaAPI.lua_gettop(L) == 1)
                {
                    translator.Push(L, default(UnityEngine.Pose));
                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose constructor!"));
        }
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Quaternion @rotation = (UnityEngine.Quaternion) typeof(UnityEngine.Quaternion).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Vector3 @position = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = new UnityEngine.Pose(@position, @rotation);

            if (!isNewObj)
            {
                __ret--;
                WriteBackInstance(__domain, __ret, __mStack, ref result_of_this_method);
                return(__ret);
            }

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#4
0
 public Antilatency.Alt.Tracking.State getExtrapolatedState(UnityEngine.Pose placement, float deltaTime)
 {
     Antilatency.Alt.Tracking.State result;
     Antilatency.Alt.Tracking.State resultMarshaler;
     HandleExceptionCode(_VMT.getExtrapolatedState(_object, placement, deltaTime, out resultMarshaler));
     result = resultMarshaler;
     return(result);
 }
        public void SetTrait(string traitName, UnityEngine.Pose value)
        {
            if (!PoseValues.TryGetValue(this, out var typeValues))
            {
                typeValues       = Pools.PoseResults.Get();
                PoseValues[this] = typeValues;
            }

            typeValues[traitName] = value;
        }
        static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.Pose instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.Pose[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
        ///<summary>Get the value for a trait of type UnityEngine.Pose in this query</summary>
        public bool TryGetTrait(string traitName, out UnityEngine.Pose value)
        {
            if (!PoseValues.TryGetValue(this, out var typeValues))
            {
                value = default;
                return(false);
            }

            if (!typeValues.TryGetValue(traitName, out value))
            {
                value = default;
                return(false);
            }

            return(true);
        }
示例#8
0
        static StackObject *get_up_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            UnityEngine.Pose instance_of_this_method = (UnityEngine.Pose) typeof(UnityEngine.Pose).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            var result_of_this_method = instance_of_this_method.up;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);

            __intp.Free(ptr_of_this_method);
            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#9
0
        static int _m_GetTransformedBy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Pose gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Pose>(L, 2))
                {
                    UnityEngine.Pose _lhs; translator.Get(L, 2, out _lhs);

                    UnityEngine.Pose gen_ret = gen_to_be_invoked.GetTransformedBy(_lhs);
                    translator.Push(L, gen_ret);


                    translator.Update(L, 1, gen_to_be_invoked);


                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Transform>(L, 2))
                {
                    UnityEngine.Transform _lhs = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));

                    UnityEngine.Pose gen_ret = gen_to_be_invoked.GetTransformedBy(_lhs);
                    translator.Push(L, gen_ret);


                    translator.Update(L, 1, gen_to_be_invoked);


                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Pose.GetTransformedBy!"));
        }
示例#10
0
        static StackObject *op_Inequality_12(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Pose @b = (UnityEngine.Pose) typeof(UnityEngine.Pose).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Pose @a = (UnityEngine.Pose) typeof(UnityEngine.Pose).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = a != b;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
示例#11
0
        static StackObject *Equals_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Pose @other = (UnityEngine.Pose) typeof(UnityEngine.Pose).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            UnityEngine.Pose instance_of_this_method = (UnityEngine.Pose) typeof(UnityEngine.Pose).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            var result_of_this_method = instance_of_this_method.Equals(@other);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);

            __intp.Free(ptr_of_this_method);
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
示例#12
0
 public Pose(UnityEngine.Pose _pose)
 {
     position = new Point(_pose.position);
     orientation = new Quaternion(_pose.rotation);
 }
示例#13
0
 public static extern bool UnityMagicLeap_TryGetPose(MLCoordinateFrameUID id, out UnityEngine.Pose pose);
示例#14
0
            public Antilatency.InterfaceContract.Bool match(UnityEngine.Vector3[] raysUpSpace, out Antilatency.Alt.Tracking.MarkerIndex[] markersIndices, out UnityEngine.Pose poseOfUpSpace)
            {
                Antilatency.InterfaceContract.Bool result;
                Antilatency.InterfaceContract.Bool resultMarshaler;
                var raysUpSpaceMarshaler    = Antilatency.InterfaceContract.Details.ArrayInMarshaler.create(raysUpSpace);
                var markersIndicesMarshaler = Antilatency.InterfaceContract.Details.ArrayOutMarshaler.create <Antilatency.Alt.Tracking.MarkerIndex>();

                UnityEngine.Pose poseOfUpSpaceMarshaler;
                HandleExceptionCode(_VMT.match(_object, raysUpSpaceMarshaler, markersIndicesMarshaler, out poseOfUpSpaceMarshaler, out resultMarshaler));
                raysUpSpaceMarshaler.Dispose();
                markersIndices = markersIndicesMarshaler.value;
                markersIndicesMarshaler.Dispose();
                poseOfUpSpace = poseOfUpSpaceMarshaler;
                result        = resultMarshaler;
                return(result);
            }
 static void set_rotation_1(ref object o, object v)
 {
     UnityEngine.Pose _o = (UnityEngine.Pose)o;
     _o.rotation = (UnityEngine.Quaternion)v;
 }
 static void set_position_0(ref object o, object v)
 {
     UnityEngine.Pose _o = (UnityEngine.Pose)o;
     _o.position = (UnityEngine.Vector3)v;
 }