`pltr2`: Linear interpolation for grid to world mapping using doubly dimensioned coordinate arrays (row-major order as per normal C 2d arrays)
Prev | Chapter 19. The Specialized C/C++ API for PLplot | Next

#### `pltr2`: Linear interpolation for grid to world mapping using doubly dimensioned coordinate arrays (row-major order as per normal C 2d arrays)

`pltr2 (` | x,
| y,
| tx,
| ty,
| pltr_data`)`;

Linear interpolation for grid to world mapping using two-dimensional `x` and `y` coordinate arrays. This routine can be used for the `PLTRANSFORM_callback` argument of `plcont`, `plshade`, `plshades`, `plimagefr`, or `plvect`.

`x` (``PLFLT``, input)

  X index of matrix.

`y` (``PLFLT``, input)

  Y index of matrix.

`tx` (``PLFLT_NC_SCALAR``, output)

  Transformed x value in world coordinates corresponding to x index of matrix.

`ty` (``PLFLT_NC_SCALAR``, output)

  Transformed y value in world coordinates corresponding to y index of matrix.

`pltr_data` (``PLPointer``, input)

  A pointer to additional data that is passed as an argument to PLplot routines that potentially could use the `pltr2` callback (i.e., `plcont`, `plimagefr`, `plshade`, `plshades`, and `plvect`); which then internally pass that argument on to this callback.

This function is used in C examples 9, 16, 20, and 22.

Prev | Up | Next
`pltr1`: Linear interpolation for matrix index to world coordinate mapping using singly dimensioned coordinate arrays | Home | `plTranslateCursor`: Convert device to world coordinates