Пример #1
0
 public VtValue(GfQuatf obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_9(GfQuatf.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public GfMatrix3f(GfQuatf rot) : this(UsdCsPINVOKE.new_GfMatrix3f__SWIG_8(GfQuatf.getCPtr(rot)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public VtQuatfArray(uint n, GfQuatf value) : this(UsdCsPINVOKE.new_VtQuatfArray__SWIG_5(n, GfQuatf.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        static public UnityEngine.Quaternion QuatfToQuaternion(GfQuatf quat)
        {
            // See pxr/unity quaternion layout above.
            GfVec3f img = quat.GetImaginary();

            return(new UnityEngine.Quaternion(img[0], img[1], img[2], quat.GetReal()));
        }
Пример #5
0
 public GfQuatd(GfQuatf other) : this(UsdCsPINVOKE.new_GfQuatd__SWIG_4(GfQuatf.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
 public void push_back(GfQuatf elem)
 {
     UsdCsPINVOKE.VtQuatfArray_push_back(swigCPtr, GfQuatf.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #7
0
 protected void SetValue(int index, GfQuatf value)
 {
     UsdCsPINVOKE.VtQuatfArray_SetValue(swigCPtr, index, GfQuatf.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #8
0
 public void assign(uint n, GfQuatf fill)
 {
     UsdCsPINVOKE.VtQuatfArray_assign(swigCPtr, n, GfQuatf.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #9
0
        public static bool Equals(GfQuatf lhs, GfQuatf rhs)
        {
            bool ret = UsdCsPINVOKE.GfQuatf_Equals(GfQuatf.getCPtr(lhs), GfQuatf.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #10
0
        public GfMatrix4f SetRotateOnly(GfQuatf rot)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetRotateOnly__SWIG_0(swigCPtr, GfQuatf.getCPtr(rot)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #11
0
        public static bool operator==(GfQuatf lhs, GfQuatf 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) || GfQuatf.Equals(lhs, rhs)));
        }
Пример #12
0
        public GfQuatf GetNormalized(float eps)
        {
            GfQuatf ret = new GfQuatf(UsdCsPINVOKE.GfQuatf_GetNormalized__SWIG_0(swigCPtr, eps), true);

            return(ret);
        }
Пример #13
0
        public static GfQuatf GetIdentity()
        {
            GfQuatf ret = new GfQuatf(UsdCsPINVOKE.GfQuatf_GetIdentity(), true);

            return(ret);
        }
Пример #14
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfQuatf obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Пример #15
0
 override public bool Equals(object rhs)
 {
     return(GfQuatf.Equals(this, rhs as GfQuatf));
 }
Пример #16
0
        public GfQuatf GetInverse()
        {
            GfQuatf ret = new GfQuatf(UsdCsPINVOKE.GfQuatf_GetInverse(swigCPtr), true);

            return(ret);
        }
Пример #17
0
 public VtQuatfArray(Vt_ArrayForeignDataSource foreignSrc, GfQuatf data, uint size) : this(UsdCsPINVOKE.new_VtQuatfArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfQuatf.getCPtr(data), size), true)
 {
 }
Пример #18
0
        protected GfQuatf GetValue(int index)
        {
            GfQuatf ret = new GfQuatf(UsdCsPINVOKE.VtQuatfArray_GetValue(swigCPtr, index), false);

            return(ret);
        }
Пример #19
0
        public GfQuatf ExtractRotationQuat()
        {
            GfQuatf ret = new GfQuatf(UsdCsPINVOKE.GfMatrix4f_ExtractRotationQuat(swigCPtr), true);

            return(ret);
        }
Пример #20
0
        public GfQuatf GetNormalized()
        {
            GfQuatf ret = new GfQuatf(UsdCsPINVOKE.GfQuatf_GetNormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }