DK for Delphi | GisUtils.TGIS_Utils.GisIsCommonExtent | Methods | Properties
Tests whether two 2D extents share a common area.
// Delphi public class function GisIsCommonExtent( const _extent1 : TGIS_Extent; const _extent2 : TGIS_Extent ) : Boolean; static; inline;
// C++ Builder public: static bool GisIsCommonExtent( TGIS_Extent* const _extent1, TGIS_Extent* const _extent2 );
| Name | Type | Description |
|---|---|---|
| _extent1 | TGIS_Extent | First extent to test. |
| _extent2 | TGIS_Extent | Second extent to test. |
| Type | Description |
|---|---|
| Boolean | True if the extents overlap; False if they are disjoint. |
USAGE: Tests whether two 2D extents overlap. Use for spatial filtering and intersection detection.
viewport = TGIS_Utils.GisExtent(0.0, 0.0, 100.0, 100.0) tile = TGIS_Utils.GisExtent(80.0, 80.0, 120.0, 120.0) overlaps = TGIS_Utils.GisIsCommonExtent(viewport, tile)