Example #1
0
        public bool Intersect(GfPlane plane, out double distance, out bool frontFacing)
        {
            bool ret = UsdCsPINVOKE.GfRay_Intersect__SWIG_5(swigCPtr, GfPlane.getCPtr(plane), out distance, out frontFacing);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #2
0
        public bool Intersect(GfPlane plane)
        {
            bool ret = UsdCsPINVOKE.GfRay_Intersect__SWIG_7(swigCPtr, GfPlane.getCPtr(plane));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #3
0
        public static bool Equals(GfPlane lhs, GfPlane rhs)
        {
            bool ret = UsdCsPINVOKE.GfPlane_Equals(GfPlane.getCPtr(lhs), GfPlane.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #4
0
        public GfPlane Transform(GfMatrix4d matrix)
        {
            GfPlane ret = new GfPlane(UsdCsPINVOKE.GfPlane_Transform(swigCPtr, GfMatrix4d.getCPtr(matrix)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #5
0
        public static bool operator==(GfPlane lhs, GfPlane 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) || GfPlane.Equals(lhs, rhs)));
        }
Example #6
0
 override public bool Equals(object rhs)
 {
     return(GfPlane.Equals(this, rhs as GfPlane));
 }
Example #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfPlane obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }