コード例 #1
0
ファイル: GfRay.cs プロジェクト: feniksa/usd-unity-sdk
        public static bool Equals(GfRay lhs, GfRay rhs)
        {
            bool ret = UsdCsPINVOKE.GfRay_Equals(GfRay.getCPtr(lhs), GfRay.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
ファイル: GfRay.cs プロジェクト: feniksa/usd-unity-sdk
        public GfRay Transform(GfMatrix4d matrix)
        {
            GfRay ret = new GfRay(UsdCsPINVOKE.GfRay_Transform(swigCPtr, GfMatrix4d.getCPtr(matrix)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
ファイル: GfFrustum.cs プロジェクト: jminor/usd-unity-sdk
        public GfRay ComputePickRay(GfVec3d worldSpacePos)
        {
            GfRay ret = new GfRay(UsdCsPINVOKE.GfFrustum_ComputePickRay__SWIG_1(swigCPtr, GfVec3d.getCPtr(worldSpacePos)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
ファイル: GfFrustum.cs プロジェクト: jminor/usd-unity-sdk
        public GfRay ComputeRay(GfVec2d windowPos)
        {
            GfRay ret = new GfRay(UsdCsPINVOKE.GfFrustum_ComputeRay__SWIG_0(swigCPtr, GfVec2d.getCPtr(windowPos)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: GfRay.cs プロジェクト: feniksa/usd-unity-sdk
        public static bool operator==(GfRay lhs, GfRay 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) || GfRay.Equals(lhs, rhs)));
        }
コード例 #6
0
ファイル: GfRay.cs プロジェクト: feniksa/usd-unity-sdk
 override public bool Equals(object rhs)
 {
     return(GfRay.Equals(this, rhs as GfRay));
 }
コード例 #7
0
ファイル: GfRay.cs プロジェクト: feniksa/usd-unity-sdk
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfRay obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }