GEOintersectStraightLine

Top  Previous  Next

Cut of a straight line with a distance.

Delivers the intersection, if necessary the factors of (P2-P1) and (P4-P3) to reach of the intersection. All back values which are not needed may receive zero pointer.

Parametre

x1 (stands in) [IN]

Co-ordinate on the x axis of the first point of the straight lines.

y1 (stands in) [IN]

Co-ordinate on the Y axis of the first point of the straight lines.

x2 (stands in) [IN]

Co-ordinate on the x axis of the second point of the straight lines.

y2 (stands in) [IN]

Co-ordinate on the Y axis of the second point of the straight lines.

x3 (stands in) [IN]

Co-ordinate on the x axis of the first point of the distance.

y3 (stands in) [IN]

Co-ordinate on the Y axis of the first point of the distance.

x4 (stands in) [IN]

Co-ordinate on the x axis of the second point of the distance.

y4 (stands in) [IN]

Co-ordinate on the Y axis of the second point of the distance.

xs (stands in *) [IN / OUT]

Co-ordinate on the x axis of the intersection.

ys (stands in *) [IN / OUT]

Co-ordinate on the Y axis of the intersection.

s12 (stands in *) [IN / OUT]

s12 is the factor with which is determined whether the intersection still lies on the straight lines. Is valid 0s121, so the intersection is still on the straight lines.

s34 (stands in *) [IN / OUT]

s34 is the factor with which is determined whether the intersection still lies on the distance. Is valid 0s341, so the intersection is still on the distance.

Result

(int) [OUT]

M_Param_Beschr

Declaration

#include "basic.h"

 

int DLLENTRY GEOintersectStraightLine (

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 * xs,

stand in * ys,

stand in * s12,

stand in * s34

);

Related functions

GEOintersectArcArc

GEOintersectCircleArc

GEOintersectCircleCircle

GEOintersectCircleLine

GEOintersectLineArc

GEOintersectLineLine

GEOintersectLineLine2

GEOintersectLineSpline

GEOintersectStraightArc

GEOintersectStraightCircle

GEOintersectStraightStraight

GEOintersectStraightVector

GEOintersectVectorVector