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