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); }
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); }
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); }
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); }
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))); }
override public bool Equals(object rhs) { return(GfRay.Equals(this, rhs as GfRay)); }
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); }