![](../icons/Help.png) | CVVUiCloseXYM Method |
Find the closest point to an input point, with mask (XY).
Available since Oasis montaj version: 5.1.8
License: Available to anyone with an Oasis Montaj license.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Input X and Y location VVs, and a location.
Returns the index of the point in the VV closest to the
input point.
This skips points where the mask value is dummy.
If no valid points are in the VVs, or all the mask VV values
are dummy, the returned index is -1.
Syntaxpublic static int iCloseXYM(
CGXNETCore gxNetShared,
CVV vv_x,
CVV vv_y,
CVV vv_m,
double x,
double y
)
Public Shared Function iCloseXYM (
gxNetShared As CGXNETCore,
vv_x As CVV,
vv_y As CVV,
vv_m As CVV,
x As Double,
y As Double
) As Integer
public:
static int iCloseXYM(
CGXNETCore^ gxNetShared,
CVV^ vv_x,
CVV^ vv_y,
CVV^ vv_m,
double x,
double y
)
static member iCloseXYM :
gxNetShared : CGXNETCore *
vv_x : CVV *
vv_y : CVV *
vv_m : 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 - vv_m
- Type: GeoEngine.Core.GXNetXCVV
Mask values - 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.
See Also