Esempio n. 1
0
        public MochaVec2 Mul(MochaVec2 rhs)
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Mul__SWIG_1(swigCPtr, MochaVec2.getCPtr(rhs)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
        public bool NegComp(MochaVec2 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec2_NegComp(swigCPtr, MochaVec2.getCPtr(rhs));

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 3
0
 public MochaVec2 Reflect(MochaVec2 reflectionAxis)
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Reflect(swigCPtr, MochaVec2.getCPtr(reflectionAxis)), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Esempio n. 4
0
 public MochaVec2 Normalized()
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Normalized(swigCPtr), true);
     return ret;
 }
Esempio n. 5
0
 public bool NegComp(MochaVec2 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec2_NegComp(swigCPtr, MochaVec2.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Esempio n. 6
0
        public MochaVec2 Div(float rhs)
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Div__SWIG_0(swigCPtr, rhs), true);

            return(ret);
        }
Esempio n. 7
0
 public void SetTextureOffset(MochaVec2 offset)
 {
     SharpMochaPINVOKE.UVTransformNode_SetTextureOffset(swigCPtr, MochaVec2.getCPtr(offset));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 8
0
 public void SetTextureScale(MochaVec2 scale)
 {
     SharpMochaPINVOKE.UVTransformNode_SetTextureScale(swigCPtr, MochaVec2.getCPtr(scale));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 9
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MochaVec2 obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Esempio n. 10
0
        public MochaVec2 Sub()
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Sub__SWIG_0(swigCPtr), true);

            return(ret);
        }
Esempio n. 11
0
        public MochaVec2 Negate()
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Negate(swigCPtr), false);

            return(ret);
        }
Esempio n. 12
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MochaVec2 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 13
0
        public MochaVec2 Normalized()
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Normalized(swigCPtr), true);

            return(ret);
        }
Esempio n. 14
0
        public MochaVec2 Reflect(MochaVec2 reflectionAxis)
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Reflect(swigCPtr, MochaVec2.getCPtr(reflectionAxis)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 15
0
 public MochaVec2 Sub()
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Sub__SWIG_0(swigCPtr), true);
     return ret;
 }
Esempio n. 16
0
 public void AddScaledVector(MochaVec2 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec2_AddScaledVector(swigCPtr, MochaVec2.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 17
0
 public MochaVec2 Sub(MochaVec2 rhs)
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Sub__SWIG_1(swigCPtr, MochaVec2.getCPtr(rhs)), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Esempio n. 18
0
 public float Dot(MochaVec2 rhs)
 {
     float ret = SharpMochaPINVOKE.MochaVec2_Dot(swigCPtr, MochaVec2.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Esempio n. 19
0
 public MochaVec3(MochaVec2 Vector2) : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_4(MochaVec2.getCPtr(Vector2)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 20
0
 public MochaVec2 Mul(float rhs)
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Mul__SWIG_0(swigCPtr, rhs), true);
     return ret;
 }
Esempio n. 21
0
 public MochaVec2 GetTextureScale()
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.UVTransformNode_GetTextureScale(swigCPtr), true);
     return ret;
 }
Esempio n. 22
0
 public MochaVec2 Negate()
 {
     MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Negate(swigCPtr), false);
     return ret;
 }
Esempio n. 23
0
 public MochaVec3(MochaVec2 Vector2)
     : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_4(MochaVec2.getCPtr(Vector2)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 24
0
        public MochaVec2 GetTextureScale()
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.UVTransformNode_GetTextureScale(swigCPtr), true);

            return(ret);
        }