Synopsis

PDX_MSGT mth_GetLineStringInter2D(double linseg[4], long nstrng, long npnts[], double (*pnts)[2], long *nints, double *ints[])

Purpose

Find all of the 2D intersections between a specified line segment and a set of linear strings.

Description

Finds all of the 2D intersections between a specified line segment and a set of 2D linear strings. The linear strings must not contain any zero length segments (no error checking is done for this error condition because of performance).

Input

linseg

The XY endpoints of the line segment to be tested

nstrng

The total number of linear strings in the pnts array ( > 0)

npnts

The nstrng count of points in pnts array

pnts

The 2D linear string endpoints

Output

nints

The number of intersections found

ints

The intersecion parameter values correspoinding to the intersections of linseg with pnts.

Return

      MTH_NOERR
      MTH_NOMEMORY
      .fi