本文整理汇总了C#中touchvg.core.Box2d类的典型用法代码示例。如果您正苦于以下问题:C# Box2d类的具体用法?C# Box2d怎么用?C# Box2d使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Box2d类属于touchvg.core命名空间,在下文中一共展示了Box2d类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: swapTopBottom
public Box2d swapTopBottom() {
Box2d ret = new Box2d(touchvgPINVOKE.Box2d_swapTopBottom(swigCPtr), false);
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: getRect
public Box2d getRect() {
Box2d ret = new Box2d(touchvgPINVOKE.MgBaseRect_getRect(swigCPtr), true);
return ret;
}
示例5: hitTestBox
public override bool hitTestBox(Box2d rect)
{
bool ret = touchvgPINVOKE.MgEllipse_hitTestBox(swigCPtr, Box2d.getCPtr(rect));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
示例6: Box2d
public Box2d(Box2d src) : this(touchvgPINVOKE.new_Box2d__SWIG_2(Box2d.getCPtr(src)), true) {
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
}
示例7: getPageRectW
public Box2d getPageRectW()
{
Box2d ret = new Box2d(touchvgPINVOKE.MgShapeDoc_getPageRectW(swigCPtr), false);
return ret;
}
示例8: deflate
public Box2d deflate(float l, float b, float r, float t) {
Box2d ret = new Box2d(touchvgPINVOKE.Box2d_deflate__SWIG_4(swigCPtr, l, b, r, t), false);
return ret;
}
示例9: offset
public Box2d offset(float x, float y) {
Box2d ret = new Box2d(touchvgPINVOKE.Box2d_offset__SWIG_0(swigCPtr, x, y), false);
return ret;
}
示例10: contains
public bool contains(Box2d box, Tol tol) {
bool ret = touchvgPINVOKE.Box2d_contains__SWIG_3(swigCPtr, Box2d.getCPtr(box), Tol.getCPtr(tol));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
示例11: empty
public Box2d empty() {
Box2d ret = new Box2d(touchvgPINVOKE.Box2d_empty(swigCPtr), false);
return ret;
}
示例12: isEqualTo
public bool isEqualTo(Box2d box) {
bool ret = touchvgPINVOKE.Box2d_isEqualTo__SWIG_1(swigCPtr, Box2d.getCPtr(box));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
示例13: kIdentity
public static Box2d kIdentity() {
Box2d ret = new Box2d(touchvgPINVOKE.Box2d_kIdentity(), false);
return ret;
}
示例14: scaleBy
public Box2d scaleBy(float sx) {
Box2d ret = new Box2d(touchvgPINVOKE.Box2d_scaleBy__SWIG_1(swigCPtr, sx), false);
return ret;
}
示例15: getExtent
public Box2d getExtent()
{
Box2d ret = new Box2d(touchvgPINVOKE.MgShapeDoc_getExtent(swigCPtr), true);
return ret;
}