Computes the intersection of two convex polygons.

If two polygons do not intersect, the VI returns empty arrays to Intersection X and Intersection Y with no error.


icon

Inputs/Outputs

  • c1ddbl.png X 1

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

  • c1ddbl.png Y 1

    Y 1 specifies the y-coordinates of the vertices of the first polygon. The length of Y 1 must be equal to X 1.

  • c1ddbl.png X 2

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

  • c1ddbl.png Y 2

    Y 2 specifies the y-coordinates of the vertices of the second polygon. The length of Y 2 must be equal to X 2.

  • i1ddbl.png Intersection X

    Intersection X returns the x-coordinates of the vertices of the intersection polygon.

  • i1ddbl.png Intersection Y

    Intersection Y returns the y-coordinates of the vertices of the intersection 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.

  • The intersection of two convex polygons is the area contained in both polygons, as shown in the following front panel.