Inheritance: global::System.IDisposable
コード例 #1
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d setAngleLength(float angle, float len)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setAngleLength(swigCPtr, angle, len), false);
     return ret;
 }
コード例 #2
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #3
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d scaleBy(float s)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaleBy__SWIG_1(swigCPtr, s), false);
     return ret;
 }
コード例 #4
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d set(float xx, float yy)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_set__SWIG_0(swigCPtr, xx, yy), false);
     return ret;
 }
コード例 #5
0
ファイル: Point2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #6
0
        public Vector2d scaleBy(float s)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaleBy__SWIG_1(swigCPtr, s), false);

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

            return(ret);
        }
コード例 #8
0
ファイル: MgEllipse.cs プロジェクト: vvhh2002/TouchVG
 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;
 }
コード例 #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);
        }
コード例 #10
0
        public Vector2d setAngleLength(float angle, float len)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setAngleLength(swigCPtr, angle, len), false);

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

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

            return(ret);
        }
コード例 #13
0
 internal static HandleRef getCPtr(Vector2d obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #14
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 internal static HandleRef getCPtr(Vector2d obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #15
0
        public Vector2d scaledVector(float newLength)
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaledVector(swigCPtr, newLength), true);

            return(ret);
        }
コード例 #16
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public static Vector2d kYAxis()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kYAxis(), false);
     return ret;
 }
コード例 #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);
        }
コード例 #18
0
ファイル: Point2d.cs プロジェクト: stonelin129/Touchvg
 public void offset(Vector2d vec)
 {
     touchvgPINVOKE.Point2d_offset__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #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);
        }
コード例 #20
0
ファイル: mgnear.cs プロジェクト: stonelin129/Touchvg
 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();
 }
コード例 #21
0
        public static Vector2d kIdentity()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kIdentity(), false);

            return(ret);
        }
コード例 #22
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d(Vector2d src)
     : this(touchvgPINVOKE.new_Vector2d__SWIG_2(Vector2d.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #23
0
        public static Vector2d kYAxis()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kYAxis(), false);

            return(ret);
        }
コード例 #24
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d scaledVector(float newLength)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_scaledVector(swigCPtr, newLength), true);
     return ret;
 }
コード例 #25
0
ファイル: BoundBox.cs プロジェクト: rhcad/touchvg-v0.6
 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;
 }
コード例 #26
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #27
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public float dotProduct(Vector2d v)
 {
     float ret = touchvgPINVOKE.Vector2d_dotProduct(swigCPtr, Vector2d.getCPtr(v));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #28
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d setLength(float newLength)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_setLength(swigCPtr, newLength), false);
     return ret;
 }
コード例 #29
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #30
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d unitVector()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_unitVector(swigCPtr), true);
     return ret;
 }
コード例 #31
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #32
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public static Vector2d kIdentity()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kIdentity(), false);
     return ret;
 }
コード例 #33
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public bool isRightOf(Vector2d vec)
 {
     bool ret = touchvgPINVOKE.Vector2d_isRightOf(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #34
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #35
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d negate()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_negate(swigCPtr), false);
     return ret;
 }
コード例 #36
0
ファイル: Point2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d negate()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Point2d_negate(swigCPtr), true);
     return ret;
 }
コード例 #37
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #38
0
ファイル: Point2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #39
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 public float projectScaleToVector(Vector2d xAxis)
 {
     float ret = touchvgPINVOKE.Vector2d_projectScaleToVector(swigCPtr, Vector2d.getCPtr(xAxis));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #40
0
ファイル: Point2d.cs プロジェクト: stonelin129/Touchvg
 public Vector2d asVector()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Point2d_asVector(swigCPtr), true);
     return ret;
 }
コード例 #41
0
ファイル: Vector2d.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #42
0
ファイル: mgnear.cs プロジェクト: stonelin129/Touchvg
 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;
 }
コード例 #43
0
        public Vector2d negate()
        {
            Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_negate(swigCPtr), false);

            return(ret);
        }