Inheritance: global::System.IDisposable
Example #1
0
 public Vector2d setAngleLength(float angle, float len)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setAngleLength(swigCPtr, angle, len), false);
     return ret;
 }
Example #2
0
 public Vector2d transform(Matrix2d m)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_transform(swigCPtr, Matrix2d.getCPtr(m)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #3
0
 public Vector2d scaleBy(float s)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaleBy__SWIG_1(swigCPtr, s), false);
     return ret;
 }
Example #4
0
 public Vector2d set(float xx, float yy)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_set__SWIG_0(swigCPtr, xx, yy), false);
     return ret;
 }
Example #5
0
 public Point2d subtract(Vector2d vec)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_subtract__SWIG_1(swigCPtr, Vector2d.getCPtr(vec)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #6
0
        public Vector2d scaleBy(float s)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaleBy__SWIG_1(swigCPtr, s), false);

            return(ret);
        }
Example #7
0
        public Vector2d setLength(float newLength)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setLength(swigCPtr, newLength), false);

            return(ret);
        }
Example #8
0
 public override bool offset(Vector2d vec, int segment)
 {
     bool ret = touchvgPINVOKE.MgEllipse_offset(swigCPtr, Vector2d.getCPtr(vec), segment);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #9
0
        public Vector2d set(Vector2d v)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_set__SWIG_1(swigCPtr, Vector2d.getCPtr(v)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #10
0
        public Vector2d setAngleLength(float angle, float len)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setAngleLength(swigCPtr, angle, len), false);

            return(ret);
        }
Example #11
0
        public Vector2d set(float xx, float yy)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_set__SWIG_0(swigCPtr, xx, yy), false);

            return(ret);
        }
Example #12
0
        public Vector2d unitVector()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_unitVector(swigCPtr), true);

            return(ret);
        }
Example #13
0
 internal static HandleRef getCPtr(Vector2d obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Example #14
0
 internal static HandleRef getCPtr(Vector2d obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Example #15
0
        public Vector2d scaledVector(float newLength)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaledVector(swigCPtr, newLength), true);

            return(ret);
        }
Example #16
0
 public static Vector2d kYAxis()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kYAxis(), false);
     return ret;
 }
Example #17
0
        public float projectResolveVector(Vector2d xAxis, Vector2d proj, Vector2d perp)
        {
            float ret = touchvgPINVOKE.Vector2d_projectResolveVector(swigCPtr, Vector2d.getCPtr(xAxis), Vector2d.getCPtr(proj), Vector2d.getCPtr(perp));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #18
0
 public void offset(Vector2d vec)
 {
     touchvgPINVOKE.Point2d_offset__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Example #19
0
        public bool resolveVector(Vector2d uAxis, Vector2d vAxis)
        {
            bool ret = touchvgPINVOKE.Vector2d_resolveVector__SWIG_1(swigCPtr, Vector2d.getCPtr(uAxis), Vector2d.getCPtr(vAxis));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #20
0
 public static void cubicSplinesBox(Box2d box, int n, Point2d knots, Vector2d knotvs)
 {
     touchvgPINVOKE.mgnear_cubicSplinesBox__SWIG_2(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Example #21
0
        public static Vector2d kIdentity()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kIdentity(), false);

            return(ret);
        }
Example #22
0
 public Vector2d(Vector2d src)
     : this(touchvgPINVOKE.new_Vector2d__SWIG_2(Vector2d.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Example #23
0
        public static Vector2d kYAxis()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kYAxis(), false);

            return(ret);
        }
Example #24
0
 public Vector2d scaledVector(float newLength)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaledVector(swigCPtr, newLength), true);
     return ret;
 }
Example #25
0
 public BoundBox set(Point2d arg0, Vector2d dir1, Vector2d dir2) {
   BoundBox ret = new BoundBox(touchvgPINVOKE.BoundBox_set__SWIG_1(swigCPtr, Point2d.getCPtr(arg0), Vector2d.getCPtr(dir1), Vector2d.getCPtr(dir2)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Example #26
0
 public Vector2d set(Vector2d v)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_set__SWIG_1(swigCPtr, Vector2d.getCPtr(v)), false);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #27
0
 public float dotProduct(Vector2d v)
 {
     float ret = touchvgPINVOKE.Vector2d_dotProduct(swigCPtr, Vector2d.getCPtr(v));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #28
0
 public Vector2d setLength(float newLength)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setLength(swigCPtr, newLength), false);
     return ret;
 }
Example #29
0
 public bool isParallelTo(Vector2d vec, Tol tol)
 {
     bool ret = touchvgPINVOKE.Vector2d_isParallelTo__SWIG_0(swigCPtr, Vector2d.getCPtr(vec), Tol.getCPtr(tol));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #30
0
 public Vector2d unitVector()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_unitVector(swigCPtr), true);
     return ret;
 }
Example #31
0
 public bool isPerpendicularTo(Vector2d vec)
 {
     bool ret = touchvgPINVOKE.Vector2d_isPerpendicularTo__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #32
0
 public static Vector2d kIdentity()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kIdentity(), false);
     return ret;
 }
Example #33
0
 public bool isRightOf(Vector2d vec)
 {
     bool ret = touchvgPINVOKE.Vector2d_isRightOf(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #34
0
 public Vector2d add(Vector2d v)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_add(swigCPtr, Vector2d.getCPtr(v)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #35
0
 public Vector2d negate()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_negate(swigCPtr), false);
     return ret;
 }
Example #36
0
 public Vector2d negate()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Point2d_negate(swigCPtr), true);
     return ret;
 }
Example #37
0
 public float projectResolveVector(Vector2d xAxis, Vector2d proj, Vector2d perp)
 {
     float ret = touchvgPINVOKE.Vector2d_projectResolveVector(swigCPtr, Vector2d.getCPtr(xAxis), Vector2d.getCPtr(proj), Vector2d.getCPtr(perp));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #38
0
 public Vector2d subtract(Point2d pnt)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Point2d_subtract__SWIG_0(swigCPtr, Point2d.getCPtr(pnt)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #39
0
 public float projectScaleToVector(Vector2d xAxis)
 {
     float ret = touchvgPINVOKE.Vector2d_projectScaleToVector(swigCPtr, Vector2d.getCPtr(xAxis));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #40
0
 public Vector2d asVector()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Point2d_asVector(swigCPtr), true);
     return ret;
 }
Example #41
0
 public bool resolveVector(Vector2d uAxis, Vector2d vAxis)
 {
     bool ret = touchvgPINVOKE.Vector2d_resolveVector__SWIG_1(swigCPtr, Vector2d.getCPtr(uAxis), Vector2d.getCPtr(vAxis));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #42
0
 public static bool cubicSplinesIntersectBox(Box2d box, int n, Point2d knots, Vector2d knotvs, bool closed)
 {
     bool ret = touchvgPINVOKE.mgnear_cubicSplinesIntersectBox__SWIG_1(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), closed);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #43
0
        public Vector2d negate()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_negate(swigCPtr), false);

            return(ret);
        }