GEOperpendicularToLine

Top  Previous  Next

If the plumb line of a point on falls Just.

Both authoritative points of a straight line and a point are given in the level. The procedure calculates the intersection of the plumb line of the point on Just and is found out at the same time whether this point also lies on the distance between both points of the straight lines.

Parametre

xPoint (STANDS IN) [IN]

yPoint (STANDS IN) [IN]

From this point becomes the plumb line on by (x1Line, y1Line) and (x2Line, y2Line) specified Just calculatedly. It is no mistake if this point lies even on the straight lines.

x1Line (STANDS IN) [IN]

y1Line (STANDS IN) [IN]

This is the first point to the commitment of the straight lines on whom the plumb line is liked.

x2Line (STANDS IN) [IN]

y2Line (STANDS IN) [IN]

This is the second point to the commitment of the straight lines on whom the plumb line is liked.

xHit (STANDS IN *) [IN / OUT]

yHit (STANDS IN *) [IN / OUT]

The co-ordinates of the plumb line point are calculated and then written in the variables xHit and yHit. xHit and yHit must point at variable of the type STANDS IN, be initialized so.

notBetweenPoints (int *) [IN / OUT]

Here the procedure FALSE delivers back if the plumb line point lies between the points (x1, y1) and (x2, y2). If the plumb line point lies beyond this distance, stands here TRUE. notBetweenPoints if a valid pointer must be. The value is bigger than 0 if the plumb line point lies behind (x2, y2), the value is smaller 0 if the plumb line point lies before (x1, y1).

Result

---

Declaration

#include "basic.h"

 

void DLLENTRY GEOperpendicularToLine (

STAND-IN xPoint,

STAND-IN yPoint,

STAND-IN x1Line,

STAND-IN y1Line,

STAND-IN x2Line,

STAND-IN y2Line,

STAND-IN * xHit,

STAND-IN * yHit,

int * notBetweenPoints

);