public VtVec2fArray(uint n, GfVec2f value) : this(UsdCsPINVOKE.new_VtVec2fArray__SWIG_5(n, GfVec2f.getCPtr(value)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfMatrix2f(GfVec2f v) : this(UsdCsPINVOKE.new_GfMatrix2f__SWIG_4(GfVec2f.getCPtr(v)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfVec2d(GfVec2f other) : this(UsdCsPINVOKE.new_GfVec2d__SWIG_5(GfVec2f.getCPtr(other)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public VtValue(GfVec2f obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_12(GfVec2f.getCPtr(obj)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void assign(uint n, GfVec2f fill) { UsdCsPINVOKE.VtVec2fArray_assign(swigCPtr, n, GfVec2f.getCPtr(fill)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void push_back(GfVec2f elem) { UsdCsPINVOKE.VtVec2fArray_push_back(swigCPtr, GfVec2f.getCPtr(elem)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
protected void SetValue(int index, GfVec2f value) { UsdCsPINVOKE.VtVec2fArray_SetValue(swigCPtr, index, GfVec2f.getCPtr(value)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void SetRow(int i, GfVec2f v) { UsdCsPINVOKE.GfMatrix2f_SetRow(swigCPtr, i, GfVec2f.getCPtr(v)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public GfVec2f GetProjection(GfVec2f v) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_GetProjection(swigCPtr, GfVec2f.getCPtr(v)), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfVec2f GetComplement(GfVec2f b) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_GetComplement(swigCPtr, GfVec2f.getCPtr(b)), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public GfMatrix2f SetDiagonal(GfVec2f arg0) { GfMatrix2f ret = new GfMatrix2f(UsdCsPINVOKE.GfMatrix2f_SetDiagonal__SWIG_1(swigCPtr, GfVec2f.getCPtr(arg0)), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool Equals(GfVec2f lhs, GfVec2f rhs) { bool ret = UsdCsPINVOKE.GfVec2f_Equals(GfVec2f.getCPtr(lhs), GfVec2f.getCPtr(rhs)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool operator==(GfVec2f lhs, GfVec2f 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) || GfVec2f.Equals(lhs, rhs))); }
public GfVec2f GetNormalized(float eps) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_GetNormalized__SWIG_0(swigCPtr, eps), true); return(ret); }
public GfVec2f GetColumn(int i) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfMatrix2f_GetColumn(swigCPtr, i), true); return(ret); }
protected GfVec2f GetValue(int index) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.VtVec2fArray_GetValue(swigCPtr, index), false); return(ret); }
public VtVec2fArray(Vt_ArrayForeignDataSource foreignSrc, GfVec2f data, uint size) : this(UsdCsPINVOKE.new_VtVec2fArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec2f.getCPtr(data), size), true) { }
public static GfVec2f Axis(uint i) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_Axis(i), true); return(ret); }
public static GfVec2f YAxis() { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_YAxis(), true); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfVec2f obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
override public bool Equals(object rhs) { return(GfVec2f.Equals(this, rhs as GfVec2f)); }
static public UnityEngine.Vector2 Vec2fToVector2(GfVec2f value) { GfVec2f obj = pxr.UsdCs.VtValueToGfVec2f(value); return(new UnityEngine.Vector2(obj[0], obj[1])); }
public GfVec2f Set(float s0, float s1) { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_Set(swigCPtr, s0, s1), false); return(ret); }
public GfVec2f GetNormalized() { GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_GetNormalized__SWIG_1(swigCPtr), true); return(ret); }
static public UnityEngine.Vector2 Vec2fToVector2(GfVec2f obj) { return(new UnityEngine.Vector2(obj[0], obj[1])); }