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(); } }
public VtValue(GfVec2h obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_13(GfVec2h.getCPtr(obj)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfVec2d(GfVec2h other) : this(UsdCsPINVOKE.new_GfVec2d__SWIG_6(GfVec2h.getCPtr(other)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
protected void SetValue(int index, GfVec2h value) { UsdCsPINVOKE.VtVec2hArray_SetValue(swigCPtr, index, GfVec2h.getCPtr(value)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void assign(uint n, GfVec2h fill) { UsdCsPINVOKE.VtVec2hArray_assign(swigCPtr, n, GfVec2h.getCPtr(fill)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void push_back(GfVec2h elem) { UsdCsPINVOKE.VtVec2hArray_push_back(swigCPtr, GfVec2h.getCPtr(elem)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
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); }
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); }
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); }
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); }
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); }
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))); }
protected GfVec2h GetValue(int index) { GfVec2h ret = new GfVec2h(UsdCsPINVOKE.VtVec2hArray_GetValue(swigCPtr, index), false); return(ret); }
public static GfVec2h XAxis() { GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_XAxis(), true); return(ret); }
override public bool Equals(object rhs) { return(GfVec2h.Equals(this, rhs as GfVec2h)); }
public static GfVec2h Axis(uint i) { GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_Axis(i), true); return(ret); }
public GfVec2h GetNormalized() { GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_GetNormalized__SWIG_1(swigCPtr), true); return(ret); }
public GfVec2h Set(GfHalf a) { GfVec2h ret = new GfVec2h(UsdCsPINVOKE.GfVec2h_Set__SWIG_1(swigCPtr, GfHalf.getCPtr(a)), false); return(ret); }
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); }
public VtVec2hArray(Vt_ArrayForeignDataSource foreignSrc, GfVec2h data, uint size) : this(UsdCsPINVOKE.new_VtVec2hArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec2h.getCPtr(data), size), true) { }