本文整理汇总了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;
}
示例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();
}
示例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();
}
示例4: kOrigin
public static Point2d kOrigin()
{
Point2d ret = new Point2d(touchvgPINVOKE.Point2d_kOrigin(), false);
return ret;
}
示例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();
}
示例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;
}
示例7: getCPtr
internal static HandleRef getCPtr(Point2d obj)
{
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
示例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;
}
示例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;
}
示例10: setCenter
public void setCenter(Point2d pt) {
touchvgPINVOKE.MgBaseRect_setCenter(swigCPtr, Point2d.getCPtr(pt));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
}
示例11: getPoint
public override Point2d getPoint(int index)
{
Point2d ret = new Point2d(touchvgPINVOKE.MgEllipse_getPoint(swigCPtr, index), true);
return ret;
}
示例12: setRect4P
public void setRect4P(Point2d points) {
touchvgPINVOKE.MgBaseRect_setRect4P(swigCPtr, Point2d.getCPtr(points));
}
示例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();
}
示例14: getCenter
public Point2d getCenter() {
Point2d ret = new Point2d(touchvgPINVOKE.MgBaseRect_getCenter(swigCPtr), true);
return ret;
}
示例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;
}