pe_vert1_to_vert2

Transforms between vertical coordinate systems in the transformation’s definition order

Usage syntax

int pe_vert1_to_vert2 (PE_VERTTRAN verttran, int n, double coord[ ][2], double h[ ]);

Parameters
verttran Vertical transformation object
n Number of points
coord[ ][2] Two-dimensional array of points
h Array of heights or depths
Description

Pe_vert1_to_vert2 applies a vertical transformation in the direction of the transformation definition to the specified array of points. The first vertical coordinate system in a transformation is the "from", or "source", coordinate system. The "target" coordinate system is the second vertical coordinate system. The pe_vert1_to_vert2 transformation converts from the first to the second vertical coordinate system. The values of the coord array are not changed and, depending on the transformation method, can be null.

Returns

Number of points successfully transformed

Examples

double pnt[2][2] = {{10,20},{10,30}};
double z[2] = {{200},{189}};
int out = pe_vert1_to_vert2(vt,2,pnt,z);