pe_vert2_to_vert1

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

Usage syntax

int pe_vert2_to_vert1 (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_vert2_to_vert1 applies a vertical transformation to the specified array of points, but in the opposite direction of the transformation definition. 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_vert2_to_vert1 transformation converts from the second to the first 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_vert2_to_vert1(vt,2,pnt,z);