Shifts two-dimensional Cartesian coordinates along the x- and y-axes. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • c1ddbl.png X

    X specifies the input x-coordinates.

  • c1ddbl.png Y

    Y specifies the input y-coordinates.

  • cnclst.png shift

    shift specifies the shift amount along each of the axes.

  • cdbl.png dx

    dx specifies the shift amount along the x-axis.

  • cdbl.png dy

    dy specifies the shift amount along the y-axis.

  • i1ddbl.png X Out

    X Out returns the shifted x-coordinates.

  • i1ddbl.png Y Out

    Y Out returns the shifted y-coordinates.

  • 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 following illustration shows the shift of a two-dimensional Cartesian coordinate by dx and dy:

    Before the shift, the coordinate of point P is (x, y). After the shift operation, the coordinate of point P is (x', y'), where

    x' = x + dx y' = y + dy