コード例 #1
0
 public VtValue(VtQuatfArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_35(VtQuatfArray.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public void swap(VtQuatfArray other)
 {
     UsdCsPINVOKE.VtQuatfArray_swap(swigCPtr, VtQuatfArray.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
        public bool ComputeJointLocalTransformComponents(VtVec3fArray translations, VtQuatfArray rotations, VtVec3hArray scales, UsdTimeCode time)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimQuery_ComputeJointLocalTransformComponents__SWIG_0(swigCPtr, VtVec3fArray.getCPtr(translations), VtQuatfArray.getCPtr(rotations), VtVec3hArray.getCPtr(scales), UsdTimeCode.getCPtr(time));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
        public static bool Equals(VtQuatfArray lhs, VtQuatfArray rhs)
        {
            bool ret = UsdCsPINVOKE.VtQuatfArray_Equals(VtQuatfArray.getCPtr(lhs), VtQuatfArray.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public bool IsIdentical(VtQuatfArray other)
        {
            bool ret = UsdCsPINVOKE.VtQuatfArray_IsIdentical(swigCPtr, VtQuatfArray.getCPtr(other));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
        static public List <UnityEngine.Quaternion> ListFromVtArray(VtQuatfArray input)
        {
            var output = UsdIo.ArrayAllocator.Malloc <UnityEngine.Quaternion>(input.size());

            unsafe
            {
                fixed(UnityEngine.Quaternion *p = output)
                {
                    input.CopyToArray((IntPtr)p);
                }
            }
            // Swap real component for USD/Unity mis-match.
            SwapQuaternionReal(ref output);
            return(output.ToList());
        }
コード例 #7
0
        static public VtQuatfArray ToVtArray(UnityEngine.Quaternion[] input)
        {
            SwapQuaternionReal(ref input);

            var output = new VtQuatfArray((uint)input.Length);

            unsafe
            {
                // Copy to USD/C++
                fixed(UnityEngine.Quaternion *p = input)
                {
                    output.CopyFromArray((IntPtr)p);
                }
            }

            // Swap back
            SwapQuaternionReal(ref input);

            return(output);
        }
コード例 #8
0
        public bool ComputeJointLocalTransformComponents(VtVec3fArray translations, VtQuatfArray rotations, VtVec3hArray scales)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimQuery_ComputeJointLocalTransformComponents__SWIG_1(swigCPtr, VtVec3fArray.getCPtr(translations), VtQuatfArray.getCPtr(rotations), VtVec3hArray.getCPtr(scales));

            return(ret);
        }
コード例 #9
0
 public VtQuatfArray(VtQuatfArray other) : this(UsdCsPINVOKE.new_VtQuatfArray__SWIG_3(VtQuatfArray.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VtQuatfArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }