MinDistanceToPolygon

Returns the distance to the nearest point of the specified polygon from the current entity.

Syntax

MinDistanceToPolygon(polygon name)
  • polygon name: name of polygon

Example

MinDistanceToPolygon("Polygon 42")

By default the function uses the PetroVisor signals "surface x-coordinate" and "surface y-coordinate" with unit "m", alternatively the functions allows 3 more arguments to specify different PetroVisor unit and signals to be used as coordinates.

Example

MinDistanceToPolygon("Polygon 42", "m", "alternative x-coordinate", "alternative y-coordinate")