GEOintersectLineSpline

Top  Previous  Next

Intersection calculation of line with Spline.

With this routine the intersections are calculated between a distance and a Spline. As a result the number of the intersections is delivered and accordingly many intersections become in the field (ix, iy) zurückgeliefert. However, it are not delivered any more intersections than with ilimit is given.

Runs of the Spline several times by the same point and cuts the distance exactly these, the point is also returned several times. If a section of the curve runs between two Splinepunkten exactly on the distance, are starting point and terminator point of the common segment Intersections.

The distance is cut only with a coarse interpolation of the Splines and is cut only with cut again with a refinement of suitable sections.

Parametre

x1 (stands in) [IN]

y1 (stands in) [IN]

Starting point of the line.

x2 (stands in) [IN]

y2 (stands in) [IN]

Terminator point of the line.

x [] (stands in) [IN]

y [] (stands in) [IN]

The Splinepunkte.

scount (int) [IN]

The number of the Splinepunkte in x [] and y [].

ix [] (stands in) [IN / OUT]

iy [] (stands in) [IN / OUT]

Field of the intersections between line and Spline.

ilimit (int) [IN]

Length of the field with the intersections. Even if as a result more intersections are counted, do not become more than ilimit intersections zurückgeliefert.

Result

(int) [OUT]

Number of the counted intersections. This result does not have to go immediately his with the number of the intersections which become in the field of the intersections zurückgeliefert. The number of the ascertained intersections is limited by ilimit.

Declaration

#include "basic.h"

 

int DLLENTRY GEOintersectLineSpline (

stand in x1,

stand in y1,

stand in x2,

stand in y2,

stand in x [],

stand in y [],

int scount,

stand in ix [],

stand in iy [],

int ilimit

);

Related functions

GEOintersectArcArc

GEOintersectCircleArc

GEOintersectCircleCircle

GEOintersectCircleLine

GEOintersectLineArc

GEOintersectLineLine

GEOintersectLineLine2

GEOintersectStraightArc

GEOintersectStraightCircle

GEOintersectStraightLine

GEOintersectStraightStraight

GEOintersectStraightVector

GEOintersectVectorVector