CADability dotNET
Detects whether a given curve (ICurve) is touched by the cursor position given in mousePoint in respect to the active view. The setting "Select.Pick" gives the maximum pixel distance for the test.

Namespace: CADability.Actions
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public bool CurveHitTest(
	ICurve curve,
	Point mousePoint
)
Visual Basic
Public Function CurveHitTest ( _
	curve As ICurve, _
	mousePoint As Point _
) As Boolean
Visual C++
public:
bool CurveHitTest(
	ICurve^ curve, 
	Point mousePoint
)

Parameters

curve
Type: CADability.GeoObject..::..ICurve
the curve to test
mousePoint
Type: System.Drawing..::..Point
the mouse position

Return Value

true if the mouse position is close to the curve

See Also