DK11 for Delphi | GisLayerVector.TGIS_Shape.IsInsideCircle | Constructors | Fields | Methods | Properties
Test if the shape is inside a given circle.
// Delphi public function IsInsideCircle( const _center : TGIS_Point; const _range : Double; const _itype : TGIS_InsideType ) : Boolean; virtual;
// C++ Builder public: virtual bool IsInsideCircle( TGIS_Point* const _center, const double _range, TGIS_InsideType* const _itype );
Name | Type | Description |
---|---|---|
_center | TGIS_Point | center of circle |
_range | Double | circle range |
_itype | TGIS_InsideType | kind of test |
Type | Description |
---|---|
Boolean | True if relation is true. |
function MyClass.CheckShape( const _param : Integer; const _shape : TGIS_Shape; const pkt : TGIS_Point; const ex : TGIS_Extent; const shp : TGIS_Shape; const _poly : TGIS_ShapePolygon; ) : Boolean ; begin case _param of 1 : Result:=_shape.IsInsideCircle(pkt,10,gisInsideTypeFull); 2 : Result:=_shape.IsInsideExtent(ex,gisInsideTypeCentroid); 3 : Result:=_shape.IsInsidePolygon(_poly,gisInsideTypePartial); 4 : Result:=_shape.IsCommonPoint(shp); end; end;