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

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

                if (id_ctor_Lcom_thalmic_myo_Vector3_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/thalmic/myo/Vector3;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_thalmic_myo_Vector3_, new JValue(p0)),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_thalmic_myo_Vector3_, new JValue(p0));
            } finally {
            }
        }
 static void n_OnGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_(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.Vector3         p2     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.OnGyroscopeData(p0, p1, p2);
 }
        static double n_Dot_Lcom_thalmic_myo_Vector3_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Thalmic.Myo.Vector3 __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Thalmic.Myo.Vector3 p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (native_p0, JniHandleOwnership.DoNotTransfer);
            double __ret = __this.Dot(p0);

            return(__ret);
        }
 public void OnGyroscopeData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     if (id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "onGyroscopeData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Vector3;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_, new JValue(p0), new JValue(p1), new JValue(p2));
 }
#pragma warning restore 0649

        public void OnGyroscopeData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
        {
            var __h = OnGyroscopeDataHandler;

            if (__h != null)
            {
                __h(sender, new GyroscopeDataEventArgs(p0, p1, p2));
            }
        }
 public virtual void Subtract(global::Com.Thalmic.Myo.Vector3 p0)
 {
     if (id_subtract_Lcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_subtract_Lcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "subtract", "(Lcom/thalmic/myo/Vector3;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_subtract_Lcom_thalmic_myo_Vector3_, new JValue(p0));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "subtract", "(Lcom/thalmic/myo/Vector3;)V"), new JValue(p0));
         }
     } finally {
     }
 }
Пример #7
0
 public virtual void OnGyroscopeData(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     if (id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "onGyroscopeData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Vector3;)V");
     }
     try {
         if (GetType() == ThresholdType)
         {
             JNIEnv.CallVoidMethod(Handle, id_onGyroscopeData_Lcom_thalmic_myo_Myo_JLcom_thalmic_myo_Vector3_, new JValue(p0), new JValue(p1), new JValue(p2));
         }
         else
         {
             JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onGyroscopeData", "(Lcom/thalmic/myo/Myo;JLcom/thalmic/myo/Vector3;)V"), new JValue(p0), new JValue(p1), new JValue(p2));
         }
     } finally {
     }
 }
 public virtual double Dot(global::Com.Thalmic.Myo.Vector3 p0)
 {
     if (id_dot_Lcom_thalmic_myo_Vector3_ == IntPtr.Zero)
     {
         id_dot_Lcom_thalmic_myo_Vector3_ = JNIEnv.GetMethodID(class_ref, "dot", "(Lcom/thalmic/myo/Vector3;)D");
     }
     try {
         double __ret;
         if (GetType() == ThresholdType)
         {
             __ret = JNIEnv.CallDoubleMethod(Handle, id_dot_Lcom_thalmic_myo_Vector3_, new JValue(p0));
         }
         else
         {
             __ret = JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "dot", "(Lcom/thalmic/myo/Vector3;)D"), new JValue(p0));
         }
         return(__ret);
     } finally {
     }
 }
 static double n_Z(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Thalmic.Myo.Vector3 __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Z());
 }
 static void n_Subtract_Lcom_thalmic_myo_Vector3_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Thalmic.Myo.Vector3 __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Thalmic.Myo.Vector3 p0     = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Subtract(p0);
 }
 static void n_Normalize(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Thalmic.Myo.Vector3 __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Normalize();
 }
 static void n_Multiply_D(IntPtr jnienv, IntPtr native__this, double p0)
 {
     global::Com.Thalmic.Myo.Vector3 __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Vector3> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Multiply(p0);
 }
 public GyroscopeDataEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
 public AccelerometerDataEventArgs(global::Com.Thalmic.Myo.Myo p0, long p1, global::Com.Thalmic.Myo.Vector3 p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }