public void AddScaledVector(MochaVec2 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec2_AddScaledVector(swigCPtr, MochaVec2.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public void SetTextureScale(MochaVec2 scale)
 {
     SharpMochaPINVOKE.UVTransformNode_SetTextureScale(swigCPtr, MochaVec2.getCPtr(scale));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public void SetTextureOffset(MochaVec2 offset)
 {
     SharpMochaPINVOKE.UVTransformNode_SetTextureOffset(swigCPtr, MochaVec2.getCPtr(offset));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public float Dot(MochaVec2 rhs)
        {
            float ret = SharpMochaPINVOKE.MochaVec2_Dot(swigCPtr, MochaVec2.getCPtr(rhs));

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

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public MochaVec2 Add(MochaVec2 rhs)
        {
            MochaVec2 ret = new MochaVec2(SharpMochaPINVOKE.MochaVec2_Add(swigCPtr, MochaVec2.getCPtr(rhs)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #7
0
 public MochaVec3(MochaVec2 Vector2) : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_4(MochaVec2.getCPtr(Vector2)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }