Environment.IsCloserVertex Method
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
boolTrue if the point is closer, false otherwise.
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.