Click or drag to resize

CVVUiCloseXY Method

Find the closest point to an input point (XY).

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static int iCloseXY(
	CVV vv_x,
	CVV vv_y,
	double x,
	double y
)

public static int iCloseXY(
	CVV vv_x,
	CVV vv_y,
	double x,
	double y
)

Parameters

vv_x
Type: GeoEngine.Core.GXNetCVV
X locations
vv_y
Type: GeoEngine.Core.GXNetCVV
Y locations
x
Type: SystemDouble
Input X
y
Type: SystemDouble
Input Y

Return Value

Type: Int32
Index 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