Exemplo n.º 1
0
 public VtDoubleArray(VtDoubleArray other) : this(UsdCsPINVOKE.new_VtDoubleArray__SWIG_1(VtDoubleArray.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public VtValue(VtDoubleArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_27(VtDoubleArray.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public void swap(VtDoubleArray other)
 {
     UsdCsPINVOKE.VtDoubleArray_swap(swigCPtr, VtDoubleArray.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        public static bool Equals(VtDoubleArray lhs, VtDoubleArray rhs)
        {
            bool ret = UsdCsPINVOKE.VtDoubleArray_Equals(VtDoubleArray.getCPtr(lhs), VtDoubleArray.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public bool IsIdentical(VtDoubleArray other)
        {
            bool ret = UsdCsPINVOKE.VtDoubleArray_IsIdentical(swigCPtr, VtDoubleArray.getCPtr(other));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        static public double[] FromVtArray(VtDoubleArray input)
        {
            var output = UsdIo.ArrayAllocator.Malloc <double>(input.size());

            unsafe
            {
                fixed(double *p = output)
                {
                    input.CopyToArray((IntPtr)p);
                }
            }
            return(output);
        }
        static public VtDoubleArray ToVtArray(double[] input)
        {
            var output = new VtDoubleArray((uint)input.Length);

            unsafe
            {
                fixed(double *p = input)
                {
                    output.CopyFromArray((IntPtr)p);
                }
            }
            return(output);
        }
Exemplo n.º 8
0
 static public List <double> ListFromVtArray(VtDoubleArray input)
 {
     return(FromVtArray(input).ToList());
 }
Exemplo n.º 9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VtDoubleArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }