  | CVVUiCloseXY Method  | 
 Find the closest point to an input point (XY).
 
    Namespace: 
   Geosoft.Desktop.GXNetX
    Assembly:
   geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
Syntaxpublic static int iCloseXY(
	CGXNETCore gxNetShared,
	CVV vv_x,
	CVV vv_y,
	double x,
	double y
)
public static int iCloseXY(
	CGXNETCore gxNetShared,
	CVV vv_x,
	CVV vv_y,
	double x,
	double y
)
Public Shared Function iCloseXY ( 
	gxNetShared As CGXNETCore,
	vv_x As CVV,
	vv_y As CVV,
	x As Double,
	y As Double
) As Integer
Public Shared Function iCloseXY ( 
	gxNetShared As CGXNETCore,
	vv_x As CVV,
	vv_y As CVV,
	x As Double,
	y As Double
) As Integer
public:
static int iCloseXY(
	CGXNETCore^ gxNetShared, 
	CVV^ vv_x, 
	CVV^ vv_y, 
	double x, 
	double y
)
public:
static int iCloseXY(
	CGXNETCore^ gxNetShared, 
	CVV^ vv_x, 
	CVV^ vv_y, 
	double x, 
	double y
)
static member iCloseXY : 
        gxNetShared : CGXNETCore * 
        vv_x : CVV * 
        vv_y : CVV * 
        x : float * 
        y : float -> int 
static member iCloseXY : 
        gxNetShared : CGXNETCore * 
        vv_x : CVV * 
        vv_y : CVV * 
        x : float * 
        y : float -> int 
Parameters
- gxNetShared
 - Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - vv_x
 - Type: GeoEngine.Core.GXNetXCVV
X locations - vv_y
 - Type: GeoEngine.Core.GXNetXCVV
Y locations - x
 - Type: SystemDouble
Input X - y
 - Type: SystemDouble
Input Y 
Return Value
Type: 
Int32Index of closest point, -1 if no valid locations, or data is masked.
Remarks
Input X and Y location VVs, and a location.
Returns the index of the point in the VV closest to the
input point.
See Also