コード例 #1
0
 public GfMatrix4d(GfMatrix4f m) : this(UsdCsPINVOKE.new_GfMatrix4d__SWIG_10(GfMatrix4f.getCPtr(m)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public static bool Equals(GfMatrix4f lhs, GfMatrix4f rhs)
        {
            bool ret = UsdCsPINVOKE.GfMatrix4f_Equals(GfMatrix4f.getCPtr(lhs), GfMatrix4f.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetLookAt(GfVec3f eyePoint, GfRotation orientation)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetLookAt__SWIG_1(swigCPtr, GfVec3f.getCPtr(eyePoint), GfRotation.getCPtr(orientation)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetTranslateOnly(GfVec3f t)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetTranslateOnly(swigCPtr, GfVec3f.getCPtr(t)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetTransform(GfMatrix3f rotmx, GfVec3f translate)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetTransform__SWIG_1(swigCPtr, GfMatrix3f.getCPtr(rotmx), GfVec3f.getCPtr(translate)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetRotateOnly(GfMatrix3f mx)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetRotateOnly__SWIG_2(swigCPtr, GfMatrix3f.getCPtr(mx)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetScale(GfVec3f scaleFactors)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetScale__SWIG_1(swigCPtr, GfVec3f.getCPtr(scaleFactors)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetDiagonal(GfVec4f arg0)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetDiagonal__SWIG_1(swigCPtr, GfVec4f.getCPtr(arg0)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetRotate(GfRotation rot)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetRotate__SWIG_1(swigCPtr, GfRotation.getCPtr(rot)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #10
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public static bool operator==(GfMatrix4f lhs, GfMatrix4f rhs)
        {
            // The Swig binding glue will re-enter this operator comparing to null, so
            // that case must be handled explicitly to avoid an infinite loop. This is still
            // not great, since it crosses the C#/C++ barrier twice. A better approache might
            // be to return a simple value from C++ that can be compared in C#.
            bool lnull = lhs as object == null;
            bool rnull = rhs as object == null;

            return((lnull == rnull) && ((lnull && rnull) || GfMatrix4f.Equals(lhs, rhs)));
        }
コード例 #11
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetDiagonal(float s)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetDiagonal__SWIG_0(swigCPtr, s), false);

            return(ret);
        }
コード例 #12
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f GetOrthonormalized(bool issueWarning)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_GetOrthonormalized__SWIG_0(swigCPtr, issueWarning), true);

            return(ret);
        }
コード例 #13
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f GetInverse()
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_GetInverse__SWIG_2(swigCPtr), true);

            return(ret);
        }
コード例 #14
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f GetInverse(ref double det)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_GetInverse__SWIG_1(swigCPtr, ref det), true);

            return(ret);
        }
コード例 #15
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfMatrix4f obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #16
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f GetTranspose()
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_GetTranspose(swigCPtr), true);

            return(ret);
        }
コード例 #17
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public bool Factor(GfMatrix4f r, GfVec3f s, GfMatrix4f u, GfVec3f t, GfMatrix4f p)
        {
            bool ret = UsdCsPINVOKE.GfMatrix4f_Factor__SWIG_1(swigCPtr, GfMatrix4f.getCPtr(r), GfVec3f.getCPtr(s), GfMatrix4f.getCPtr(u), GfVec3f.getCPtr(t), GfMatrix4f.getCPtr(p));

            return(ret);
        }
コード例 #18
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f Set(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_Set(swigCPtr, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33), false);

            return(ret);
        }
コード例 #19
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f GetOrthonormalized()
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_GetOrthonormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }
コード例 #20
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetZero()
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetZero(swigCPtr), false);

            return(ret);
        }
コード例 #21
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
 override public bool Equals(object rhs)
 {
     return(GfMatrix4f.Equals(this, rhs as GfMatrix4f));
 }
コード例 #22
0
ファイル: GfMatrix4f.cs プロジェクト: feniksa/usd-unity-sdk
        public GfMatrix4f SetScale(float scaleFactor)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetScale__SWIG_0(swigCPtr, scaleFactor), false);

            return(ret);
        }