GridInterpolatorXy2Jk Method |
Convert coordinates from local grid x-y coordinates
to fractional indices in the source grid. The fractional
indices can be used directly in the
Interpolate(Single, Double, Double, Single)
method.
For a 3 x 2 element/cell based grid,
(j,k) is in the range [0;3] x [0;2].
For a 3 x 2 node based grid,
(j,k) is in the range [0;2] x [0;1].
Namespace:
DHI.Projections
Assembly:
DHI.Projections (in DHI.Projections.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public bool Xy2Jk(
double x,
double y,
out double j,
out double k
)
Public Function Xy2Jk (
x As Double,
y As Double,
<OutAttribute> ByRef j As Double,
<OutAttribute> ByRef k As Double
) As Boolean
public:
bool Xy2Jk(
double x,
double y,
[OutAttribute] double% j,
[OutAttribute] double% k
)
member Xy2Jk :
x : float *
y : float *
j : float byref *
k : float byref -> bool
Parameters
- x
- Type: SystemDouble
Local x coordinate - y
- Type: SystemDouble
Local y coordinate - j
- Type: SystemDouble
Fractional j index (x-axis) - k
- Type: SystemDouble
Fractional k index (y-axis)
Return Value
Type:
Booleantrue if inside source grid, false if outside
See Also