コード例 #1
0
ファイル: GfVec4f.cs プロジェクト: khunrobot/usd-unity-sdk
        public static bool operator==(GfVec4f lhs, GfVec4f 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) || GfVec4f.Equals(lhs, rhs)));
        }
コード例 #2
0
ファイル: GfVec4f.cs プロジェクト: khunrobot/usd-unity-sdk
 override public bool Equals(object rhs)
 {
     return(GfVec4f.Equals(this, rhs as GfVec4f));
 }