Environment.IsCloserVertex Method

Tells if the projected point, whose square distance from the mouse cursor is squareDistance, is closer than the currentMinimumSquareDistance.
Protected Friend Overridable Function IsCloserVertex( _ 
ByVal projectedPt As Point3D, _ 
ByVal squareDistance As Double, _ 
ByVal currentMinimumSquareDistance As Double
) As Boolean
This language is not supported or no code example is available.
internal protected virtual bool IsCloserVertex( 
Point3D projectedPt
double squareDistance
double currentMinimumSquareDistance 
)
This language is not supported or no code example is available.

Parameters

projectedPt
Point3D

The point in projected Camera coordinates

squareDistance
double

The 2D square distance from the mouse position

currentMinimumSquareDistance
double

The current minimum 2D square distance from the mouse position

Return Value

bool

True if the point is closer, false otherwise.

Remarks
 
This method is used by the FindClosestVertex to compute the closest vertex to the mouse in 2D. Override this method to consider also the Z of the projectedPt.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition