예제 #1
0
 public FbxVector2(FbxVector2 pVector2) : this(FbxWrapperNativePINVOKE.new_FbxVector2__SWIG_1(FbxVector2.getCPtr(pVector2)), true)
 {
     if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
     {
         throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
        public FbxVector2 ToFbxVector2()
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxArrayFbxVector2_ToFbxVector2(swigCPtr);
            FbxVector2            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxVector2(cPtr, false);

            return(ret);
        }
예제 #3
0
 public void AddTextureUV(FbxVector2 pUV)
 {
     fbx_wrapperPINVOKE.FbxMesh_AddTextureUV__SWIG_1(swigCPtr, FbxVector2.getCPtr(pUV));
     if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
 public void SetUVScaling(FbxVector2 pS)
 {
     fbx_wrapperPINVOKE.FbxTexture_SetUVScaling(swigCPtr, FbxVector2.getCPtr(pS));
     if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
 public void SetUVTranslation(FbxVector2 pT)
 {
     fbx_wrapperPINVOKE.FbxTexture_SetUVTranslation(swigCPtr, FbxVector2.getCPtr(pT));
     if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #6
0
 public void SetLast(FbxVector2 pElement)
 {
     FbxWrapperNativePINVOKE.FbxArrayFbxVector2_SetLast(swigCPtr, FbxVector2.getCPtr(pElement));
     if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
     {
         throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #7
0
 public void SetAt(int pIndex, FbxVector2 pItem)
 {
     NativeMethods.FbxLayerElementArray_SetAt__SWIG_3(swigCPtr, pIndex, pItem);
     if (NativeMethods.SWIGPendingException.Pending)
     {
         throw NativeMethods.SWIGPendingException.Retrieve();
     }
 }
예제 #8
0
 public void AddTextureUV(FbxVector2 pUV, FbxLayerElement.EType pTypeIdentifier)
 {
     fbx_wrapperPINVOKE.FbxMesh_AddTextureUV__SWIG_0(swigCPtr, FbxVector2.getCPtr(pUV), (int)pTypeIdentifier);
     if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #9
0
 public void SetLast(FbxVector2 pItem)
 {
     FbxWrapperNativePINVOKE.FbxLayerElementArrayTemplateFbxVector2_SetLast(swigCPtr, FbxVector2.getCPtr(pItem));
     if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
     {
         throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetLast(FbxVector2 pItem)
 {
     fbx_wrapperPINVOKE.DirectArrayFbxVector2_SetLast(swigCPtr, FbxVector2.getCPtr(pItem));
     if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public bool RemoveIt(FbxVector2 pItem)
        {
            bool ret = fbx_wrapperPINVOKE.DirectArrayFbxVector2_RemoveIt(swigCPtr, FbxVector2.getCPtr(pItem));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #12
0
        public int Add(FbxVector2 pItem)
        {
            int ret = NativeMethods.FbxLayerElementArray_Add__SWIG_3(swigCPtr, pItem);

            if (NativeMethods.SWIGPendingException.Pending)
            {
                throw NativeMethods.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #13
0
        public int InsertAt(int pIndex, FbxVector2 pItem)
        {
            int ret = FbxWrapperNativePINVOKE.FbxLayerElementArrayTemplateFbxVector2_InsertAt(swigCPtr, pIndex, FbxVector2.getCPtr(pItem));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #14
0
        public bool RemoveIt(FbxVector2 pItem)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxLayerElementArrayTemplateFbxVector2_RemoveIt(swigCPtr, FbxVector2.getCPtr(pItem));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #15
0
        public double DotProduct(FbxVector2 pVector)
        {
            double ret = fbx_wrapperPINVOKE.FbxVector2_DotProduct(swigCPtr, FbxVector2.getCPtr(pVector));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #16
0
        public double Distance(FbxVector2 pVector)
        {
            double ret = FbxWrapperNativePINVOKE.FbxVector2_Distance(swigCPtr, FbxVector2.getCPtr(pVector));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #17
0
        public int InsertAt(int pIndex, FbxVector2 pElement)
        {
            int ret = FbxWrapperNativePINVOKE.FbxArrayFbxVector2_InsertAt__SWIG_1(swigCPtr, pIndex, FbxVector2.getCPtr(pElement));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #18
0
        public bool ne(FbxVector2 pVector)
        {
            bool ret = FbxWrapperNativePINVOKE.FbxVector2_ne(swigCPtr, FbxVector2.getCPtr(pVector));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #19
0
        public FbxVector2 div(FbxVector2 pVector)
        {
            FbxVector2 ret = new FbxVector2(FbxWrapperNativePINVOKE.FbxVector2_div__SWIG_1(swigCPtr, FbxVector2.getCPtr(pVector)), true);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #20
0
        public bool eq(FbxVector2 pVector)
        {
            bool ret = fbx_wrapperPINVOKE.FbxVector2_eq(swigCPtr, FbxVector2.getCPtr(pVector));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public int Find(FbxVector2 pItem)
        {
            int ret = fbx_wrapperPINVOKE.DirectArrayFbxVector2_Find(swigCPtr, FbxVector2.getCPtr(pItem));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #22
0
        public FbxVector2 mul(FbxVector2 pVector)
        {
            FbxVector2 ret = new FbxVector2(fbx_wrapperPINVOKE.FbxVector2_mul__SWIG_1(swigCPtr, FbxVector2.getCPtr(pVector)), true);

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public int InsertAt(int pIndex, FbxVector2 pItem)
        {
            int ret = fbx_wrapperPINVOKE.DirectArrayFbxVector2_InsertAt(swigCPtr, pIndex, FbxVector2.getCPtr(pItem));

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #24
0
        public FbxVector2 div_assign(FbxVector2 pVector)
        {
            FbxVector2 ret = new FbxVector2(fbx_wrapperPINVOKE.FbxVector2_div_assign__SWIG_1(swigCPtr, FbxVector2.getCPtr(pVector)), false);

            if (fbx_wrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #25
0
        public FbxVector2 assign(FbxVector2 pVector2)
        {
            FbxVector2 ret = new FbxVector2(FbxWrapperNativePINVOKE.FbxVector2_assign(swigCPtr, FbxVector2.getCPtr(pVector2)), false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #26
0
        public int AddUnique(FbxVector2 pElement)
        {
            int ret = FbxWrapperNativePINVOKE.FbxArrayFbxVector2_AddUnique(swigCPtr, FbxVector2.getCPtr(pElement));

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #27
0
        public int FindReverse(FbxVector2 pElement, int pStartIndex)
        {
            int ret = FbxWrapperNativePINVOKE.FbxArrayFbxVector2_FindReverse__SWIG_0(swigCPtr, FbxVector2.getCPtr(pElement), pStartIndex);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #28
0
        public void BasicTests()
        {
            FbxVector2 v;

            // make sure the no-arg constructor doesn't crash
            new FbxVector2();

            // Test other constructors
            v = new FbxVector2(5);
            Assert.AreEqual(5, v.X);
            Assert.AreEqual(5, v.Y);

            v = new FbxVector2(1, 2);
            var u = new FbxVector2(v);

            Assert.AreEqual(v, u);
            u[0] = 5;
            Assert.AreEqual(5, u[0]);
            Assert.AreEqual(1, v[0]); // check that setting u doesn't set v
            Assert.AreEqual(1, v.X);
            Assert.AreEqual(2, v.Y);

            var d2 = new FbxDouble2(5, 6);

            v = new FbxVector2(d2);
            Assert.AreEqual(5, v.X);
            Assert.AreEqual(6, v.Y);

            // Test operator[]
            v    = new FbxVector2();
            v[0] = 1;
            Assert.AreEqual(1, v[0]);
            v[1] = 2;
            Assert.AreEqual(2, v[1]);
            Assert.That(() => v[-1], Throws.Exception.TypeOf <System.ArgumentOutOfRangeException>());
            Assert.That(() => v[2], Throws.Exception.TypeOf <System.ArgumentOutOfRangeException>());
            Assert.That(() => v[-1] = 5, Throws.Exception.TypeOf <System.ArgumentOutOfRangeException>());
            Assert.That(() => v[2]  = 5, Throws.Exception.TypeOf <System.ArgumentOutOfRangeException>());

            // Test that we can scale by a scalar.
            // This isn't covered below because this isn't legal in C++
            // (at least in FBX SDK 2017.1)
            u = 5 * v;
            Assert.AreEqual(5 * v.X, u.X);
            Assert.AreEqual(5 * v.Y, u.Y);
        }
        public FbxVector2 RemoveLast()
        {
            FbxVector2 ret = new FbxVector2(fbx_wrapperPINVOKE.DirectArrayFbxVector2_RemoveLast(swigCPtr), true);

            return(ret);
        }
예제 #30
0
        public bool GetPolygonVertexUV(int pPolyIndex, int pVertexIndex, string pUVSetName, FbxVector2 pUV, SWIGTYPE_p_bool pUnmapped)
        {
            bool ret = fbx_wrapperPINVOKE.FbxMesh_GetPolygonVertexUV(swigCPtr, pPolyIndex, pVertexIndex, pUVSetName, FbxVector2.getCPtr(pUV), SWIGTYPE_p_bool.getCPtr(pUnmapped));

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