Verifies whether a point is inside a polygon.

Wire data to the x or y input to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • c1ddbl.png X

    X specifies the x-coordinates of the points.

  • c1ddbl.png Y

    Y specifies the y-coordinates of the points. The length of Y must equal the length of X.

  • c1ddbl.png Polygon X

    Polygon X specifies the x-coordinates of the vertices of the polygon. The length of Polygon X must be greater than or equal to 3.

  • c1ddbl.png Polygon Y

    Polygon Y specifies the y-coordinates of the vertices of the polygon. The length of Polygon Y must equal the length of Polygon X.

  • cdbl.png tolerance

    tolerance controls the accuracy of verifying whether a point lies on the boundary. The default is 1E–9. If tolerance is less than 0, the VI sets tolerance to 1E–9.

  • i1du16.png Position

    Position specifies the positions of given points relative to the polygon.

    0Inside—The given point is inside the polygon.
    1On Boundary—The given point is on the boundary of the polygon.
    2Outside—The given point is outside the polygon.
  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.