當前位置: 首頁>>代碼示例>>C#>>正文


C# core.Point2d類代碼示例

本文整理匯總了C#中touchvg.core.Point2d的典型用法代碼示例。如果您正苦於以下問題:C# Point2d類的具體用法?C# Point2d怎麽用?C# Point2d使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Point2d類屬於touchvg.core命名空間,在下文中一共展示了Point2d類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: contains

 public bool contains(Point2d pnt) {
   bool ret = touchvgPINVOKE.BoundBox_contains(swigCPtr, Point2d.getCPtr(pnt));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:BoundBox.cs

示例2: beziersBox

 public static void beziersBox(Box2d box, int count, Point2d points)
 {
     touchvgPINVOKE.mgnear_beziersBox__SWIG_1(Box2d.getCPtr(box), count, Point2d.getCPtr(points));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:mgnear.cs

示例3: cubicSplinesBox

 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();
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:mgnear.cs

示例4: kOrigin

 public static Point2d kOrigin()
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_kOrigin(), false);
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:Point2d.cs

示例5: moveRectHandle

 public static void moveRectHandle(Box2d rect, int index, Point2d pt)
 {
     touchvgPINVOKE.mgnear_moveRectHandle__SWIG_1(Box2d.getCPtr(rect), index, Point2d.getCPtr(pt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:mgnear.cs

示例6: subtract

 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;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Point2d.cs

示例7: getCPtr

 internal static HandleRef getCPtr(Point2d obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:4,代碼來源:Point2d.cs

示例8: hitTest

 public override float hitTest(Point2d pt, float tol, MgHitResult res)
 {
     float ret = touchvgPINVOKE.MgEllipse_hitTest(swigCPtr, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:6,代碼來源:MgEllipse.cs

示例9: setHandlePoint

 public override bool setHandlePoint(int index, Point2d pt, float tol)
 {
     bool ret = touchvgPINVOKE.MgEllipse_setHandlePoint(swigCPtr, index, Point2d.getCPtr(pt), tol);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:6,代碼來源:MgEllipse.cs

示例10: setCenter

 public void setCenter(Point2d pt) {
   touchvgPINVOKE.MgBaseRect_setCenter(swigCPtr, Point2d.getCPtr(pt));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:MgBaseRect.cs

示例11: getPoint

 public override Point2d getPoint(int index)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.MgEllipse_getPoint(swigCPtr, index), true);
     return ret;
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:5,代碼來源:MgEllipse.cs

示例12: setRect4P

 public void setRect4P(Point2d points) {
   touchvgPINVOKE.MgBaseRect_setRect4P(swigCPtr, Point2d.getCPtr(points));
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:3,代碼來源:MgBaseRect.cs

示例13: setRectWithAngle

 public void setRectWithAngle(Point2d pt1, Point2d pt2, float angle, Point2d basept) {
   touchvgPINVOKE.MgBaseRect_setRectWithAngle(swigCPtr, Point2d.getCPtr(pt1), Point2d.getCPtr(pt2), angle, Point2d.getCPtr(basept));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:MgBaseRect.cs

示例14: getCenter

 public Point2d getCenter() {
   Point2d ret = new Point2d(touchvgPINVOKE.MgBaseRect_getCenter(swigCPtr), true);
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:MgBaseRect.cs

示例15: set

 public Point2d set(Point2d pnt)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_set__SWIG_1(swigCPtr, Point2d.getCPtr(pnt)), false);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Point2d.cs


注:本文中的touchvg.core.Point2d類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。