Exemple #1
0
 public virtual void setListenerPosition(TBVector position)
 {
     Audio360CSharpPINVOKE.AudioEngine_setListenerPosition(swigCPtr, TBVector.getCPtr(position));
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #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();
     }
 }
Exemple #3
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();
     }
 }
Exemple #4
0
 public static void normalise(TBVector vector)
 {
     Audio360CSharpPINVOKE.TBVector_normalise(TBVector.getCPtr(vector));
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
 public static void clampMagnitude(TBVector vector, float maxValue)
 {
     Audio360CSharpPINVOKE.TBVector_clampMagnitude(TBVector.getCPtr(vector), maxValue);
     if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
     {
         throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #6
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);
        }
Exemple #7
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);
        }
Exemple #8
0
        public static TBVector getRightFromQuat(TBQuat quat)
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.TBQuat_getRightFromQuat(TBQuat.getCPtr(quat)), true);

            if (Audio360CSharpPINVOKE.SWIGPendingException.Pending)
            {
                throw Audio360CSharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        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);
        }
Exemple #10
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);
        }
Exemple #11
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);
        }
        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);
        }
Exemple #13
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);
        }
Exemple #14
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);
        }
Exemple #15
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);
        }
Exemple #16
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);
        }
        public virtual TBVector getPosition()
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.Object3D_getPosition(swigCPtr), true);

            return(ret);
        }
Exemple #18
0
        public static TBVector getVectorFromAziEleDist(float azimuth, float elevation, float dist)
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.TBVector_getVectorFromAziEleDist(azimuth, elevation, dist), true);

            return(ret);
        }
Exemple #19
0
 public static global::System.Runtime.InteropServices.HandleRef getCPtr(TBVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #20
0
 static extern void TBRoomMan_setRoomCentre(int iRoomId, TBVector CentrePosition, TBVector ForwardVector, TBVector UpVector, TBVector Scale);
Exemple #21
0
        public virtual TBVector getListenerPosition()
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.AudioEngine_getListenerPosition(swigCPtr), true);

            return(ret);
        }
Exemple #22
0
        public static TBVector up()
        {
            TBVector ret = new TBVector(Audio360CSharpPINVOKE.TBVector_up(), true);

            return(ret);
        }