Synopsis

PDX_MSGT mth_VerticalLineLoopIntersect(long option, double x_value, int dim, long num_pnts, double *loop_pnts, long *num_y_values, double **y_values)

Purpose

Find the intersection points between a vertical line and a loop

Description

Find the x values of the intersection points between a vertical line and a loop. Only the first two dimensional values will be processed though dim can be larger than 2.

Input

option

Options (not used)

x_value

The x value of the vertical line

dim

The dimension of points (2 or 3)

num_pnts

The number of points of the loop

loop_pnts

The points array of the loop

Output

num_y_values

The number of y values at the intersections

y_values

The y values at the intersections

Return

      MTH_NOERR
      Low level error return
      .fi