Graphisoft®

GeometryVersion: 1.0

Geometry::XSectorsOverlap

Calculates the intersection of two sectors, but handles the overlapping case too.

     long XSectorsOverlap (
      const Sector*  s1,
      const Sector*  s2,
      const Coord*   xc
    );

Parameters

s1
Pointer to the 1. sector.
s2
Pointer to the 2. sector.
xc
Pointer to the result points (max 2).

Return Values

Returns the number of sections (0,1,2). Result points always start from xc[0] if any.
In case of overlapping it returns beg/end points of the common part.

Requirements

Version: 1.0 or later
Header: Sector2DData.h
Import Library: GeometryImp.lib [Win]
Module: Geometry.dll [WIN] GeometryLib [Mac]

See Also

Sector2D functions

2D Position tests and Intersections