Eyeshot 10 WinForms API Reference
IsCloserVertex Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class : IsCloserVertex Method
The point in projected Camera coordinates
The 2D square distance from the mouse position
The current minimum 2D square distance from the mouse position
Tells if the projected point, whose square distance from the mouse cursor is squareDistance, is closer than the currentMinimumSquareDistance.
Syntax
'Declaration
 
Protected Friend Overridable Function IsCloserVertex( _
   ByVal projectedPt As Point3D, _
   ByVal squareDistance As Double, _
   ByVal currentMinimumSquareDistance As Double _
) As Boolean
protected internal virtual bool IsCloserVertex( 
   Point3D projectedPt,
   double squareDistance,
   double currentMinimumSquareDistance
)

Parameters

projectedPt
The point in projected Camera coordinates
squareDistance
The 2D square distance from the mouse position
currentMinimumSquareDistance
The current minimum 2D square distance from the mouse position

Return Value

True if the point is closer, false otherwise.
Remarks
This method is used by the FindClosestVertex(Point,Double,Point3D) to compute the closest vertex to the mouse in 2D. Override this method to consider also the Z of the projectedPt.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
FindClosestVertex(Point,Double,Point3D) Method