NetLogo 7.0.0-beta2:

gis:contains?

gis:contains? x y

Reports true if every point of y’s spatial representation is also a part of x’s spatial representation. Note that this means that polygons do contain their boundaries. The objects x and y may be any one of

  • a VectorDataset, in which case the object’s spatial representation is the union of all the points, lines, or polygons the dataset contains.
  • a VectorFeature, in which case the object’s spatial representation is defined by the point, line, or polygon the feature contains.
  • A turtle, in which case the spatial representation is a point.
  • A link, whose spatial representation is a line segment connecting the two points represented by the turtles the link is connecting.
  • A patch, whose spatial representation is a rectangular polygon.
  • An agentset, whose spatial representation is the union of the representations of all of the agents it contains.
  • A list containing of any of the items listed here, including another list. The spatial representation of such a list is the union of the spatial representations of its contents.

Take me to the full GIS Extension Dictionary