GEOintersectArcArc

Top  Previous  Next

Intersection calculation of arc with arc.

With this routine the intersections are calculated between two arcs. Both arcs run against the clockwise of start corner to the final corner. If start corners and final corners are same, it concerns a full circle. Not required result parametres may be zero pointers.

Parametre

cx1 (const stands in) [IN]

cy1 (const stands in) [IN]

Centre of the first arc.

r1 (const stands in) [IN]

Radius of the first arc.

alpha1 (const stands in) [IN]

Start corner of the first arc against the clockwise to the final corner.

beta1 (const stands in) [IN]

Final corner of the first arc.

cx2 (const stands in) [IN]

cy2 (const stands in) [IN]

Centre of the second arc.

r2 (const stands in) [IN]

Radius of the second arc.

alpha2 (const stands in) [IN]

Start corner of the second arc against the clockwise to the final corner.

beta2 (const stands in) [IN]

Final corner of the second arc.

sx1 (stands in *) [IN / OUT]

sy1 (stands in *) [IN / OUT]

The first intersection, may also contain zero pointer.

sx2 (stands in *) [IN / OUT]

sy2 (stands in *) [IN / OUT]

The second intersection, may also contain zero pointer.

Result

(int) [OUT]

As a result the number of the cuts is delivered. If a cut is delivered, the intersections are in the first result parametres. If–2 is returned, there lie the arcs on the same circle. With the result–1 the arcs have the same centre.

Declaration

#include "basic.h"

 

int DLLENTRY GEOintersectArcArc (

const stands in cx1,

const stands in cy1,

const stands in r1,

const stands in alpha1,

const stands in beta1,

const stands in cx2,

const stands in cy2,

const stands in r2,

const stands in alpha2,

const stands in beta2,

stand in * sx1,

stand in * sy1,

stand in * sx2,

stand in * sy2

);

Related functions

GEOintersectCircleArc

GEOintersectCircleCircle

GEOintersectCircleLine

GEOintersectLineArc

GEOintersectLineLine

GEOintersectLineLine2

GEOintersectLineSpline

GEOintersectStraightArc

GEOintersectStraightCircle

GEOintersectStraightLine

GEOintersectStraightStraight

GEOintersectStraightVector

GEOintersectVectorVector