public Quaternion(global::Com.Thalmic.Myo.Quaternion p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                if (GetType() != typeof(Quaternion))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/thalmic/myo/Quaternion;)V", new JValue(p0)),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lcom/thalmic/myo/Quaternion;)V", new JValue(p0));
                    return;
                }

                if (id_ctor_Lcom_thalmic_myo_Quaternion_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_thalmic_myo_Quaternion_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/thalmic/myo/Quaternion;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_thalmic_myo_Quaternion_, new JValue(p0)),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_thalmic_myo_Quaternion_, new JValue(p0));
            } finally {
            }
        }
 static void n_OnOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1, IntPtr native_p2)
 {
     global::Com.Thalmic.Myo.IDeviceListener __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.IDeviceListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Myo             p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Myo> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Quaternion      p2     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.OnOrientationData(p0, p1, p2);
 }
 public void OnOrientationData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
 {
     if (id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_ == IntPtr.Zero)
     {
         id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_ = JNIEnv.GetMethodID(class_ref, "onOrientationData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Quaternion;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_, new JValue(p0), new JValue(p1), new JValue(p2));
 }
#pragma warning restore 0649

        public void OnOrientationData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
        {
            var __h = OnOrientationDataHandler;

            if (__h != null)
            {
                __h(sender, new OrientationDataEventArgs(p0, p1, p2));
            }
        }
 public static double Yaw(global::Com.Thalmic.Myo.Quaternion p0)
 {
     if (id_yaw_Lcom_thalmic_myo_Quaternion_ == IntPtr.Zero)
     {
         id_yaw_Lcom_thalmic_myo_Quaternion_ = JNIEnv.GetStaticMethodID(class_ref, "yaw", "(Lcom/thalmic/myo/Quaternion;)D");
     }
     try {
         double __ret = JNIEnv.CallStaticDoubleMethod(class_ref, id_yaw_Lcom_thalmic_myo_Quaternion_, new JValue(p0));
         return(__ret);
     } finally {
     }
 }
 public virtual void Set(global::Com.Thalmic.Myo.Quaternion p0)
 {
     if (id_set_Lcom_thalmic_myo_Quaternion_ == IntPtr.Zero)
     {
         id_set_Lcom_thalmic_myo_Quaternion_ = JNIEnv.GetMethodID(class_ref, "set", "(Lcom/thalmic/myo/Quaternion;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_set_Lcom_thalmic_myo_Quaternion_, new JValue(p0));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "set", "(Lcom/thalmic/myo/Quaternion;)V"), new JValue(p0));
         }
     } finally {
     }
 }
 static double n_Z(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Thalmic.Myo.Quaternion __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Z());
 }
 static void n_Set_Lcom_thalmic_myo_Quaternion_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Thalmic.Myo.Quaternion __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Quaternion p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Set(p0);
 }
 static IntPtr n_Normalized(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Thalmic.Myo.Quaternion __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Normalized()));
 }
 static void n_Inverse(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Thalmic.Myo.Quaternion __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Quaternion> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Inverse();
 }
 public OrientationDataEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
Exemple #12
0
 public virtual void OnOrientationData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Quaternion p2)
 {
     if (id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_ == IntPtr.Zero)
     {
         id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_ = JNIEnv.GetMethodID(class_ref, "onOrientationData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Quaternion;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_onOrientationData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Quaternion_, new JValue(p0), new JValue(p1), new JValue(p2));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onOrientationData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Quaternion;)V"), new JValue(p0), new JValue(p1), new JValue(p2));
         }
     } finally {
     }
 }