public override float hitTest(Point2d pt, float tol, MgHitResult res) { float ret = touchvgPINVOKE.MgImageShape_hitTest(swigCPtr, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public MgShape hitTest(Box2d limits, MgHitResult res) { global::System.IntPtr cPtr = touchvgPINVOKE.MgShapes_hitTest(swigCPtr, Box2d.getCPtr(limits), MgHitResult.getCPtr(res)); MgShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new MgShape(cPtr, false); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MgHitResult obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
public static float linesHit(int n, Point2d points, bool closed, Point2d pt, float tol, MgHitResult res) { float ret = touchvgPINVOKE.MgBaseShape_linesHit(n, Point2d.getCPtr(points), closed, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public override float hitTest(Point2d pt, float tol, MgHitResult res) { float ret = touchvgPINVOKE.MgPathShape_hitTest(swigCPtr, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }