GEOintersectLineLine2

Top  Previous  Next

Cut amount of two parallel lines.

With this routine the cut amount from two in parallel lines lying to each other is calculated. As a result 0 is delivered if the lines do not cut themselves. 1 is returned if the lines touch at an end. And 2 is delivered if it concerns a cut distance

Parametre

x1 (stands in) [IN]

y1 (stands in) [IN]

Starting point of the first line.

x2 (stands in) [IN]

y2 (stands in) [IN]

Terminator point of the first line.

x3 (stands in) [IN]

y3 (stands in) [IN]

Starting point of the second line.

x4 (stands in) [IN]

y4 (stands in) [IN]

Terminator point of the second line.

xs1 (stands in *) [IN / OUT]

ys1 (stands in *) [IN / OUT]

With a cut the intersection or the first point of the cut distance.

xs2 (stands in *) [IN / OUT]

ys2 (stands in *) [IN / OUT]

The second point of the cut distance.

Result

(int) [OUT]

As a result it is delivered: 0 – no cut, 1-a cut if the distances touch at an end or 2 – with a cut distance.

Declaration

#include "basic.h"

 

int DLLENTRY GEOintersectLineLine2 (

stand in x1,

stand in y1,

stand in x2,

stand in y2,

stand in x3,

stand in y3,

stand in x4,

stand in y4,

stand in * xs1,

stand in * ys1,

stand in * xs2,

stand in * ys2

);

Related functions

GEOintersectArcArc

GEOintersectCircleArc

GEOintersectCircleCircle

GEOintersectCircleLine

GEOintersectLineArc

GEOintersectLineLine

GEOintersectLineSpline

GEOintersectStraightArc

GEOintersectStraightCircle

GEOintersectStraightLine

GEOintersectStraightStraight

GEOintersectStraightVector

GEOintersectVectorVector