示例#1
0
 public GfMatrix3d(GfMatrix3f m) : this(UsdCsPINVOKE.new_GfMatrix3d__SWIG_9(GfMatrix3f.getCPtr(m)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
        public static bool Equals(GfMatrix3f lhs, GfMatrix3f rhs)
        {
            bool ret = UsdCsPINVOKE.GfMatrix3f_Equals(GfMatrix3f.getCPtr(lhs), GfMatrix3f.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#3
0
        public GfMatrix3f SetScale(GfVec3f scaleFactors)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_SetScale__SWIG_1(swigCPtr, GfVec3f.getCPtr(scaleFactors)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#4
0
        public GfMatrix3f SetRotate(GfRotation rot)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_SetRotate__SWIG_1(swigCPtr, GfRotation.getCPtr(rot)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#5
0
        public GfMatrix4f SetTransform(GfMatrix3f rotmx, GfVec3f translate)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetTransform__SWIG_1(swigCPtr, GfMatrix3f.getCPtr(rotmx), GfVec3f.getCPtr(translate)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#6
0
        public GfMatrix3f SetDiagonal(GfVec3f arg0)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_SetDiagonal__SWIG_1(swigCPtr, GfVec3f.getCPtr(arg0)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#7
0
        public GfMatrix4f SetRotateOnly(GfMatrix3f mx)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetRotateOnly__SWIG_2(swigCPtr, GfMatrix3f.getCPtr(mx)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#8
0
        public static bool operator==(GfMatrix3f lhs, GfMatrix3f 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) || GfMatrix3f.Equals(lhs, rhs)));
        }
示例#9
0
 override public bool Equals(object rhs)
 {
     return(GfMatrix3f.Equals(this, rhs as GfMatrix3f));
 }
示例#10
0
        public GfMatrix3f SetZero()
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_SetZero(swigCPtr), false);

            return(ret);
        }
示例#11
0
        public GfMatrix3f GetOrthonormalized(bool issueWarning)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_GetOrthonormalized__SWIG_0(swigCPtr, issueWarning), true);

            return(ret);
        }
示例#12
0
        public GfMatrix3f GetInverse()
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_GetInverse__SWIG_2(swigCPtr), true);

            return(ret);
        }
示例#13
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfMatrix3f obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#14
0
        public GfMatrix3f GetInverse(ref double det)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_GetInverse__SWIG_1(swigCPtr, ref det), true);

            return(ret);
        }
示例#15
0
        public GfMatrix3f GetTranspose()
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_GetTranspose(swigCPtr), true);

            return(ret);
        }
示例#16
0
        public GfMatrix3f SetDiagonal(float s)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_SetDiagonal__SWIG_0(swigCPtr, s), false);

            return(ret);
        }
示例#17
0
        public GfMatrix3f GetOrthonormalized()
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_GetOrthonormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }
示例#18
0
        public GfMatrix3f SetScale(float scaleFactor)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_SetScale__SWIG_0(swigCPtr, scaleFactor), false);

            return(ret);
        }
示例#19
0
        public GfMatrix3f ExtractRotationMatrix()
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix4f_ExtractRotationMatrix(swigCPtr), true);

            return(ret);
        }
示例#20
0
        public GfMatrix3f Set(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
        {
            GfMatrix3f ret = new GfMatrix3f(UsdCsPINVOKE.GfMatrix3f_Set(swigCPtr, m00, m01, m02, m10, m11, m12, m20, m21, m22), false);

            return(ret);
        }