getCPtr() static private method

static private getCPtr ( Vector2d obj ) : HandleRef
obj Vector2d
return HandleRef
Esempio n. 1
0
 public Vector2d(Vector2d src) : this(touchvgPINVOKE.new_Vector2d__SWIG_2(Vector2d.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
 public static void fitCubicSpline(int n, Point2d knots, Vector2d knotvs, int i, float t, Point2d fitpt)
 {
     touchvgPINVOKE.mgcurv_fitCubicSpline(n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), i, t, Point2d.getCPtr(fitpt));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 public void getCoordSystem(Vector2d e0, Vector2d e1, Point2d origin)
 {
     touchvgPINVOKE.Matrix2d_getCoordSystem(swigCPtr, Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 4
0
 public void offset(Vector2d vec)
 {
     touchvgPINVOKE.Point2d_offset__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 5
0
        public Vector2d subtract(Vector2d v)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_subtract(swigCPtr, Vector2d.getCPtr(v)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 6
0
        public static Matrix2d translation(Vector2d vec)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_translation(Vector2d.getCPtr(vec)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 7
0
        public static Matrix2d coordSystem(Vector2d e0, Vector2d e1, Point2d origin)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_0(Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 8
0
        public bool hasMirror(Vector2d reflex)
        {
            bool ret = touchvgPINVOKE.Matrix2d_hasMirror(swigCPtr, Vector2d.getCPtr(reflex));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 9
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);
        }
Esempio n. 10
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);
        }
Esempio n. 11
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);
        }
Esempio n. 12
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);
        }
Esempio n. 13
0
        public bool isOppositeTo(Vector2d vec, Tol tol)
        {
            bool ret = touchvgPINVOKE.Vector2d_isOppositeTo__SWIG_0(swigCPtr, Vector2d.getCPtr(vec), Tol.getCPtr(tol));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 14
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);
        }
Esempio n. 15
0
        public float angleTo2(Vector2d v)
        {
            float ret = touchvgPINVOKE.Vector2d_angleTo2(swigCPtr, Vector2d.getCPtr(v));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 16
0
        public override bool offset(Vector2d vec, int segment)
        {
            bool ret = touchvgPINVOKE.MgGrid_offset(swigCPtr, Vector2d.getCPtr(vec), segment);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 17
0
        public bool setTanStartEnd(Vector2d startTan, Point2d start, Point2d end)
        {
            bool ret = touchvgPINVOKE.MgArc_setTanStartEnd(swigCPtr, Vector2d.getCPtr(startTan), Point2d.getCPtr(start), Point2d.getCPtr(end));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 18
0
        public Box2d offset(Vector2d vec)
        {
            Box2d ret = new Box2d(touchvgPINVOKE.Box2d_offset__SWIG_1(swigCPtr, Vector2d.getCPtr(vec)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 19
0
        public static Matrix2d mirroring(Point2d pnt, Vector2d dir)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_2(Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 20
0
        public static int fitCurve(int knotCount, Point2d knots, Vector2d knotvs, int count, Point2d pts, float tol)
        {
            int ret = touchvgPINVOKE.mgcurv_fitCurve(knotCount, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), count, Point2d.getCPtr(pts), tol);

            return(ret);
        }
Esempio n. 21
0
 public static void cubicSplineToBezier(int n, Point2d knots, Vector2d knotvs, int i, Point2d points)
 {
     touchvgPINVOKE.mgcurv_cubicSplineToBezier__SWIG_1(n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), i, Point2d.getCPtr(points));
 }
Esempio n. 22
0
        public Matrix2d setToMirroring(Point2d pnt, Vector2d dir)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_2(swigCPtr, Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 23
0
        public static bool cubicSplines(int n, Point2d knots, Vector2d knotvs)
        {
            bool ret = touchvgPINVOKE.mgcurv_cubicSplines__SWIG_2(n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));

            return(ret);
        }
Esempio n. 24
0
        public static bool cubicSplines(int n, Point2d knots, Vector2d knotvs, int flag, float tension)
        {
            bool ret = touchvgPINVOKE.mgcurv_cubicSplines__SWIG_0(n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), flag, tension);

            return(ret);
        }
Esempio n. 25
0
        public bool drawHermiteSplines(GiContext ctx, int count, Point2d knots, Vector2d knotvs)
        {
            bool ret = touchvgPINVOKE.GiGraphics_drawHermiteSplines__SWIG_2(swigCPtr, GiContext.getCPtr(ctx), count, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));

            return(ret);
        }
Esempio n. 26
0
        public bool drawBeziers(GiContext ctx, int count, Point2d knot, Vector2d knotvs)
        {
            bool ret = touchvgPINVOKE.GiGraphics_drawBeziers__SWIG_5(swigCPtr, GiContext.getCPtr(ctx), count, Point2d.getCPtr(knot), Vector2d.getCPtr(knotvs));

            return(ret);
        }
Esempio n. 27
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);
        }
Esempio n. 28
0
        public virtual bool offset(Vector2d vec, int segment)
        {
            bool ret = (SwigDerivedClassHasMethod("offset", swigMethodTypes31) ? touchvgPINVOKE.MgBaseShape_offsetSwigExplicitMgBaseShape(swigCPtr, Vector2d.getCPtr(vec), segment) : touchvgPINVOKE.MgBaseShape_offset(swigCPtr, Vector2d.getCPtr(vec), segment));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 29
0
 public static void cubicSplinesBox(Box2d box, int n, Point2d knots, Vector2d knotvs, bool closed, bool hermite)
 {
     touchvgPINVOKE.mgnear_cubicSplinesBox__SWIG_0(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), closed, hermite);
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 30
0
        public static bool cubicSplinesIntersectBox(Box2d box, int n, Point2d knots, Vector2d knotvs)
        {
            bool ret = touchvgPINVOKE.mgnear_cubicSplinesIntersectBox__SWIG_2(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }