DK11 for Python | tatukgis.pdk.TGIS_Shape.Distance | Constructors | Methods | Properties
Calculate planar distance between a point and the shape.
# Python def Distance( self, _ptg: TGIS_Point, _prec: float ) -> float:
Name | Type | Description |
---|---|---|
_ptg | TGIS_Point | reference point |
_prec | float | precision /not longer distance than/; point inside the polygon is always not greater then _prec; if _prec less than 0, then being outside/inside polygon means the same; |
Type | Description |
---|---|
float | Distance between shapes in map units. |