Exemple #1
0
 public GfMatrix2d(GfMatrix2f m) : this(UsdCsPINVOKE.new_GfMatrix2d__SWIG_7(GfMatrix2f.getCPtr(m)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
        public static bool Equals(GfMatrix2f lhs, GfMatrix2f rhs)
        {
            bool ret = UsdCsPINVOKE.GfMatrix2f_Equals(GfMatrix2f.getCPtr(lhs), GfMatrix2f.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #3
0
        public GfMatrix2f SetDiagonal(GfVec2f arg0)
        {
            GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_SetDiagonal__SWIG_1(swigCPtr, GfVec2f.getCPtr(arg0)), false);

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

            return(ret);
        }
Exemple #8
0
        public GfMatrix2f GetInverse(ref double det)
        {
            GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_GetInverse__SWIG_1(swigCPtr, ref det), true);

            return(ret);
        }
Exemple #9
0
        public GfMatrix2f GetTranspose()
        {
            GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_GetTranspose(swigCPtr), true);

            return(ret);
        }
Exemple #10
0
        public GfMatrix2f SetDiagonal(float s)
        {
            GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_SetDiagonal__SWIG_0(swigCPtr, s), false);

            return(ret);
        }
Exemple #11
0
        public GfMatrix2f SetZero()
        {
            GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_SetZero(swigCPtr), false);

            return(ret);
        }
Exemple #12
0
        public GfMatrix2f Set(float m00, float m01, float m10, float m11)
        {
            GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_Set(swigCPtr, m00, m01, m10, m11), false);

            return(ret);
        }