GEOintersectArcLine |
Top Previous Next |
Calculation of the intersections between an arc and a line. The function calculates the intersections between one by starting point and terminator point given line and an arc which is defined by centre, starting point and terminator point. Parametre stand in x1, y1, x2, y2 [IN] Starting point and terminator point of the line. stand in xa, ya, xe, ye, xc, yc [IN] Start, terminator point and centre of the arc. stand in *xs1, *ys1, *xs2, *ys2 [OUT] Calculated intersections between arc and line. Result int OUT Number of the intersections (0, 1 or 2) Declaration #include "basic.h“
int DLLENTRY GEOintersectArcLine ( STAND-IN x1, STAND-IN y1, STAND-IN x2, STAND-IN y2, STAND-IN xa, STAND-IN ya, STAND-IN xe, STAND-IN ye, STAND-IN xc, STAND-IN yc, STAND-IN *xs1, STAND-IN *ys1, STAND-IN *xs2, STAND-IN *ys2 ); Example status = GEOintersectArcLine (100.0, 100.0, 300.0, 200.0, 500.0, 150.0, 350.0, 0.0, 350.0, 150.0, &xs1, &ys1, &xs2, &ys2) The variable status receives the value 1, because the Line once the arcs in the point xs1=200, ys1=150 cuts.
|