当前位置: 首页>>代码示例>>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;未经允许,请勿转载。