Example #1
0
 public XsQuaternion(XsQuaternion other) : this(xsensdeviceapiPINVOKE.new_XsQuaternion__SWIG_5(XsQuaternion.getCPtr(other)), true)
 {
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public XsEuler(XsQuaternion q) : this(xsensdeviceapiPINVOKE.new_XsEuler__SWIG_3(XsQuaternion.getCPtr(q)), true)
 {
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public XsVector(XsQuaternion quat, double deltaT) : this(xsensdeviceapiPINVOKE.new_XsVector__SWIG_8(XsQuaternion.getCPtr(quat), deltaT), true)
 {
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public XsSdiData(XsQuaternion dq, XsVector dv) : this(xsensdeviceapiPINVOKE.new_XsSdiData__SWIG_1(XsQuaternion.getCPtr(dq), XsVector.getCPtr(dv)), true)
 {
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public XsMatrix(XsQuaternion quat) : this(xsensdeviceapiPINVOKE.new_XsMatrix__SWIG_10(XsQuaternion.getCPtr(quat)), true)
 {
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 public void setOrientationIncrement(XsQuaternion dq)
 {
     xsensdeviceapiPINVOKE.XsSdiData_setOrientationIncrement(swigCPtr, XsQuaternion.getCPtr(dq));
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
 public void swap(XsQuaternion other)
 {
     xsensdeviceapiPINVOKE.XsQuaternion_swap(swigCPtr, XsQuaternion.getCPtr(other));
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void setOrientationQuaternion(XsQuaternion data, XsDataIdentifier coordinateSystem)
 {
     xsensdeviceapiPINVOKE.XsDataPacket_setOrientationQuaternion(swigCPtr, XsQuaternion.getCPtr(data), (int)coordinateSystem);
     if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
     {
         throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public XsEuler fromQuaternion(XsQuaternion quat)
        {
            XsEuler ret = new XsEuler(xsensdeviceapiPINVOKE.XsEuler_fromQuaternion(swigCPtr, XsQuaternion.getCPtr(quat)), false);

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #10
0
        public XsVector angularVelocityFromQuaternion(XsQuaternion quat, double deltaT)
        {
            XsVector ret = new XsVector(xsensdeviceapiPINVOKE.XsVector_angularVelocityFromQuaternion(swigCPtr, XsQuaternion.getCPtr(quat), deltaT), false);

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #11
0
        public bool compare(XsQuaternion other, double tolerance)
        {
            bool ret = xsensdeviceapiPINVOKE.XsQuaternion_compare(swigCPtr, XsQuaternion.getCPtr(other), tolerance);

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #12
0
        public XsQuaternion fromRotationMatrix(XsMatrix ori)
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsQuaternion_fromRotationMatrix(swigCPtr, XsMatrix.getCPtr(ori)), false);

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #13
0
        public XsQuaternion fromEulerAngles(XsEuler src)
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsQuaternion_fromEulerAngles(swigCPtr, XsEuler.getCPtr(src)), false);

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #14
0
        public bool setAlignmentRotationQuaternion(XsAlignmentFrame frame, XsQuaternion quat)
        {
            bool ret = xsensdeviceapiPINVOKE.XsDevice_setAlignmentRotationQuaternion(swigCPtr, (int)frame, XsQuaternion.getCPtr(quat));

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #15
0
        public double dotProduct(XsQuaternion other)
        {
            double ret = xsensdeviceapiPINVOKE.XsQuaternion_dotProduct(swigCPtr, XsQuaternion.getCPtr(other));

            if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending)
            {
                throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public XsQuaternion orientationQuaternion()
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsDataPacket_orientationQuaternion__SWIG_1(swigCPtr), true);

            return(ret);
        }
        public XsQuaternion orientationQuaternion(XsDataIdentifier coordinateSystem)
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsDataPacket_orientationQuaternion__SWIG_0(swigCPtr, (int)coordinateSystem), true);

            return(ret);
        }
Example #18
0
        public XsQuaternion orientationIncrement()
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsSdiData_orientationIncrement(swigCPtr), false);

            return(ret);
        }
Example #19
0
        public XsQuaternion normalized()
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsQuaternion_normalized(swigCPtr), true);

            return(ret);
        }
Example #20
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(XsQuaternion obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #21
0
        public XsQuaternion inverse()
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsQuaternion_inverse(swigCPtr), true);

            return(ret);
        }
Example #22
0
        public static XsQuaternion identity()
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsQuaternion_identity(), false);

            return(ret);
        }
Example #23
0
        public XsQuaternion alignmentRotationQuaternion(XsAlignmentFrame frame)
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsDevice_alignmentRotationQuaternion(swigCPtr, (int)frame), true);

            return(ret);
        }
Example #24
0
        public XsQuaternion conjugate()
        {
            XsQuaternion ret = new XsQuaternion(xsensdeviceapiPINVOKE.XsQuaternion_conjugate(swigCPtr), true);

            return(ret);
        }