Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 public GfMatrix2f(GfVec2f v) : this(UsdCsPINVOKE.new_GfMatrix2f__SWIG_4(GfVec2f.getCPtr(v)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public GfVec2d(GfVec2f other) : this(UsdCsPINVOKE.new_GfVec2d__SWIG_5(GfVec2f.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
 public VtValue(GfVec2f obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_12(GfVec2f.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 5
0
 public void assign(uint n, GfVec2f fill)
 {
     UsdCsPINVOKE.VtVec2fArray_assign(swigCPtr, n, GfVec2f.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 6
0
 public void push_back(GfVec2f elem)
 {
     UsdCsPINVOKE.VtVec2fArray_push_back(swigCPtr, GfVec2f.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 7
0
 protected void SetValue(int index, GfVec2f value)
 {
     UsdCsPINVOKE.VtVec2fArray_SetValue(swigCPtr, index, GfVec2f.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 8
0
 public void SetRow(int i, GfVec2f v)
 {
     UsdCsPINVOKE.GfMatrix2f_SetRow(swigCPtr, i, GfVec2f.getCPtr(v));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
        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);
        }
Exemplo n.º 12
0
        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);
        }
Exemplo n.º 13
0
        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)));
        }
Exemplo n.º 14
0
        public GfVec2f GetNormalized(float eps)
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_GetNormalized__SWIG_0(swigCPtr, eps), true);

            return(ret);
        }
Exemplo n.º 15
0
        public GfVec2f GetColumn(int i)
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfMatrix2f_GetColumn(swigCPtr, i), true);

            return(ret);
        }
Exemplo n.º 16
0
        protected GfVec2f GetValue(int index)
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.VtVec2fArray_GetValue(swigCPtr, index), false);

            return(ret);
        }
Exemplo n.º 17
0
 public VtVec2fArray(Vt_ArrayForeignDataSource foreignSrc, GfVec2f data, uint size) : this(UsdCsPINVOKE.new_VtVec2fArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec2f.getCPtr(data), size), true)
 {
 }
Exemplo n.º 18
0
        public static GfVec2f Axis(uint i)
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_Axis(i), true);

            return(ret);
        }
Exemplo n.º 19
0
        public static GfVec2f YAxis()
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_YAxis(), true);

            return(ret);
        }
Exemplo n.º 20
0
 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);
 }
Exemplo n.º 21
0
 override public bool Equals(object rhs)
 {
     return(GfVec2f.Equals(this, rhs as GfVec2f));
 }
Exemplo n.º 22
0
        static public UnityEngine.Vector2 Vec2fToVector2(GfVec2f value)
        {
            GfVec2f obj = pxr.UsdCs.VtValueToGfVec2f(value);

            return(new UnityEngine.Vector2(obj[0], obj[1]));
        }
Exemplo n.º 23
0
        public GfVec2f Set(float s0, float s1)
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_Set(swigCPtr, s0, s1), false);

            return(ret);
        }
Exemplo n.º 24
0
        public GfVec2f GetNormalized()
        {
            GfVec2f ret = new GfVec2f(UsdCsPINVOKE.GfVec2f_GetNormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 25
0
 static public UnityEngine.Vector2 Vec2fToVector2(GfVec2f obj)
 {
     return(new UnityEngine.Vector2(obj[0], obj[1]));
 }