示例#1
0
 public VtValue(GfVec4f obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_20(GfVec4f.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
 public GfMatrix4f(GfVec4f v) : this(UsdCsPINVOKE.new_GfMatrix4f__SWIG_3(GfVec4f.getCPtr(v)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public VtVec4fArray(uint n, GfVec4f value) : this(UsdCsPINVOKE.new_VtVec4fArray__SWIG_4(n, GfVec4f.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
 public GfVec4d(GfVec4f other) : this(UsdCsPINVOKE.new_GfVec4d__SWIG_4(GfVec4f.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
 protected void SetValue(int index, GfVec4f value)
 {
     UsdCsPINVOKE.VtVec4fArray_SetValue(swigCPtr, index, GfVec4f.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#6
0
 public void push_back(GfVec4f elem)
 {
     UsdCsPINVOKE.VtVec4fArray_push_back(swigCPtr, GfVec4f.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#7
0
 public void assign(uint n, GfVec4f fill)
 {
     UsdCsPINVOKE.VtVec4fArray_assign(swigCPtr, n, GfVec4f.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#8
0
 public void SetColumn(int i, GfVec4f v)
 {
     UsdCsPINVOKE.GfMatrix4f_SetColumn(swigCPtr, i, GfVec4f.getCPtr(v));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#9
0
        public GfVec4f GetComplement(GfVec4f b)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_GetComplement(swigCPtr, GfVec4f.getCPtr(b)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#10
0
        public GfMatrix4f SetDiagonal(GfVec4f arg0)
        {
            GfMatrix4f ret = new GfMatrix4f(UsdCsPINVOKE.GfMatrix4f_SetDiagonal__SWIG_1(swigCPtr, GfVec4f.getCPtr(arg0)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#11
0
        public static bool Equals(GfVec4f lhs, GfVec4f rhs)
        {
            bool ret = UsdCsPINVOKE.GfVec4f_Equals(GfVec4f.getCPtr(lhs), GfVec4f.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#12
0
        public GfVec4f GetProjection(GfVec4f v)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_GetProjection(swigCPtr, GfVec4f.getCPtr(v)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#13
0
        public static bool operator==(GfVec4f lhs, GfVec4f 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) || GfVec4f.Equals(lhs, rhs)));
        }
示例#14
0
        public GfVec4f GetColumn(int i)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfMatrix4f_GetColumn(swigCPtr, i), true);

            return(ret);
        }
 static public UnityEngine.Vector4 Vec4fToVector4(GfVec4f v4)
 {
     return(new UnityEngine.Vector4(v4[0], v4[1], v4[2], v4[3]));
 }
示例#16
0
 public VtVec4fArray(Vt_ArrayForeignDataSource foreignSrc, GfVec4f data, uint size) : this(UsdCsPINVOKE.new_VtVec4fArray__SWIG_2(Vt_ArrayForeignDataSource.getCPtr(foreignSrc), GfVec4f.getCPtr(data), size), true)
 {
 }
示例#17
0
        public static GfVec4f YAxis()
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_YAxis(), true);

            return(ret);
        }
示例#18
0
 override public bool Equals(object rhs)
 {
     return(GfVec4f.Equals(this, rhs as GfVec4f));
 }
示例#19
0
        public static GfVec4f Axis(uint i)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_Axis(i), true);

            return(ret);
        }
示例#20
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfVec4f obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#21
0
        public GfVec4f GetNormalized()
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_GetNormalized__SWIG_1(swigCPtr), true);

            return(ret);
        }
示例#22
0
        public GfVec4f GetNormalized(float eps)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_GetNormalized__SWIG_0(swigCPtr, eps), true);

            return(ret);
        }
 static public UnityEngine.Color32 Vec4fToColor32(GfVec4f v)
 {
     return(Vec4fToColor(v));
 }
示例#24
0
        public GfVec4f Set(float s0, float s1, float s2, float s3)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.GfVec4f_Set(swigCPtr, s0, s1, s2, s3), false);

            return(ret);
        }
 static public UnityEngine.Color Vec4fToColor(GfVec4f v)
 {
     return(new UnityEngine.Color(v[0], v[1], v[2], v[3]));
 }
 static public UnityEngine.Rect Vec4fToRect(GfVec4f v4)
 {
     return(new UnityEngine.Rect(v4[0], v4[1], v4[2], v4[3]));
 }
示例#27
0
        protected GfVec4f GetValue(int index)
        {
            GfVec4f ret = new GfVec4f(UsdCsPINVOKE.VtVec4fArray_GetValue(swigCPtr, index), false);

            return(ret);
        }