Exemplo n.º 1
0
 public VtVec2hArray(uint n, GfVec2h value) : this(UsdCsPINVOKE.new_VtVec2hArray__SWIG_4(n, GfVec2h.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public VtValue(GfVec2h obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_13(GfVec2h.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public GfVec2d(GfVec2h other) : this(UsdCsPINVOKE.new_GfVec2d__SWIG_6(GfVec2h.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
 protected void SetValue(int index, GfVec2h value)
 {
     UsdCsPINVOKE.VtVec2hArray_SetValue(swigCPtr, index, GfVec2h.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 5
0
 public void assign(uint n, GfVec2h fill)
 {
     UsdCsPINVOKE.VtVec2hArray_assign(swigCPtr, n, GfVec2h.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 6
0
 public void push_back(GfVec2h elem)
 {
     UsdCsPINVOKE.VtVec2hArray_push_back(swigCPtr, GfVec2h.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 7
0
        public GfVec2h GetNormalized(GfHalf eps)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_GetNormalized__SWIG_0(swigCPtr, GfHalf.getCPtr(eps)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 8
0
        public static bool Equals(GfVec2h lhs, GfVec2h rhs)
        {
            bool ret = UsdCsPINVOKE.GfVec2h_Equals(GfVec2h.getCPtr(lhs), GfVec2h.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 9
0
        public GfVec2h GetComplement(GfVec2h b)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_GetComplement(swigCPtr, GfVec2h.getCPtr(b)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 10
0
        public GfVec2h GetProjection(GfVec2h v)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_GetProjection(swigCPtr, GfVec2h.getCPtr(v)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 11
0
        public GfVec2h Set(GfHalf s0, GfHalf s1)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_Set__SWIG_0(swigCPtr, GfHalf.getCPtr(s0), GfHalf.getCPtr(s1)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 12
0
        public static bool operator==(GfVec2h lhs, GfVec2h 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) || GfVec2h.Equals(lhs, rhs)));
        }
Exemplo n.º 13
0
        protected GfVec2h GetValue(int index)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.VtVec2hArray_GetValue(swigCPtr, index), false);

            return(ret);
        }
Exemplo n.º 14
0
        public static GfVec2h XAxis()
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_XAxis(), true);

            return(ret);
        }
Exemplo n.º 15
0
 override public bool Equals(object rhs)
 {
     return(GfVec2h.Equals(this, rhs as GfVec2h));
 }
Exemplo n.º 16
0
        public static GfVec2h Axis(uint i)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_Axis(i), true);

            return(ret);
        }
Exemplo n.º 17
0
        public GfVec2h GetNormalized()
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_GetNormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 18
0
        public GfVec2h Set(GfHalf a)
        {
            GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_Set__SWIG_1(swigCPtr, GfHalf.getCPtr(a)), false);

            return(ret);
        }
Exemplo n.º 19
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfVec2h obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 20
0
 public VtVec2hArray(Vt_ArrayForeignDataSource foreignSrc, GfVec2h data, uint size) : this(UsdCsPINVOKE.new_VtVec2hArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec2h.getCPtr(data), size), true)
 {
 }