# Synopsis

PDX_MSGT mth_HorizontalLineLoopIntersect(long option, double y_value, int dim, long num_pnts, double *loop_pnts, long *num_x_values, double **x_values)

# Purpose

Find the intersection points between a horizontal line and a loop

# Description

Find the x values of the intersection points between a horizontal 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)

## y_value

The y value of the horizontal 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_x_values

The number of x values at the intersections

## x_values

The x values at the intersections

# Return

          MTH_NOERR
          Low level error return
          .fi