Esempio n. 1
0
 public static void normalise(TBVector vector)
 {
     Audio360CSharpPINVOKE.TBVector_normalise(TBVector.getCPtr(vector));
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public static void rotateByVectors(TBVector forwardVector, TBVector upVector, TBVector rotatedVectorOut)
 {
     Audio360CSharpPINVOKE.TBVector_rotateByVectors(TBVector.getCPtr(forwardVector), TBVector.getCPtr(upVector), TBVector.getCPtr(rotatedVectorOut));
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 public static void clampMagnitude(TBVector vector, float maxValue)
 {
     Audio360CSharpPINVOKE.TBVector_clampMagnitude(TBVector.getCPtr(vector), maxValue);
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 4
0
 public virtual void setListenerPosition(TBVector position)
 {
     Audio360CSharpPINVOKE.AudioEngine_setListenerPosition(swigCPtr, TBVector.getCPtr(position));
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 5
0
 public virtual void setListenerRotation(TBVector forwardVector, TBVector upVector)
 {
     Audio360CSharpPINVOKE.AudioEngine_setListenerRotation__SWIG_0(swigCPtr, TBVector.getCPtr(forwardVector), TBVector.getCPtr(upVector));
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 6
0
        public static TBVector CrossProduct(TBVector vectorA, TBVector vectorB)
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.TBVector_CrossProduct(TBVector.getCPtr(vectorA), TBVector.getCPtr(vectorB)), true);

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 7
0
        public static float magSquared(TBVector vector)
        {
            float ret = Audio360CSharpPINVOKE.TBVector_magSquared(TBVector.getCPtr(vector));

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 8
0
        public static float Angle(TBVector vectorA, TBVector vectorB)
        {
            float ret = Audio360CSharpPINVOKE.TBVector_Angle(TBVector.getCPtr(vectorA), TBVector.getCPtr(vectorB));

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 9
0
        public virtual EngineError setRotation(TBVector forward, TBVector up)
        {
            EngineError ret = (EngineError)Audio360CSharpPINVOKE.Object3D_setRotation__SWIG_1(swigCPtr, TBVector.getCPtr(forward), TBVector.getCPtr(up));

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 10
0
        public virtual EngineError setPosition(TBVector position)
        {
            EngineError ret = (EngineError)Audio360CSharpPINVOKE.Object3D_setPosition(swigCPtr, TBVector.getCPtr(position));

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 11
0
        public static TBVector getVectorFromEuler(TBVector eulerAngles)
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.TBVector_getVectorFromEuler(TBVector.getCPtr(eulerAngles)), true);

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 12
0
        public virtual EngineError enablePositionalTracking(bool enable, TBVector initialListenerPosition)
        {
            EngineError ret = (EngineError)Audio360CSharpPINVOKE.AudioEngine_enablePositionalTracking(swigCPtr, enable, TBVector.getCPtr(initialListenerPosition));

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 13
0
        public static TBQuat getQuatFromForwardAndUpVectors(TBVector forwardVector, TBVector upVector)
        {
            TBQuat ret = new TBQuat(Audio360CSharpPINVOKE.TBQuat_getQuatFromForwardAndUpVectors(TBVector.getCPtr(forwardVector), TBVector.getCPtr(upVector)), true);

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 14
0
        public static TBQuat getFromToQuatRotation(TBVector fromVec, TBVector toVec)
        {
            TBQuat ret = new TBQuat(Audio360CSharpPINVOKE.TBQuat_getFromToQuatRotation(TBVector.getCPtr(fromVec), TBVector.getCPtr(toVec)), true);

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 15
0
        public static TBVector antiRotateVectorByQuat(TBQuat rotQuat, TBVector vector)
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.TBQuat_antiRotateVectorByQuat(TBQuat.getCPtr(rotQuat), TBVector.getCPtr(vector)), true);

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }