| 308 | |
| 309 | |
| 310 | inline Imath::V2f |
| 311 | warp_coord (float x, float y) |
| 312 | { |
| 313 | Imath::V3f coord = warp (x/output_xres, y/output_yres, xform); |
| 314 | coord.x *= sscale; |
| 315 | coord.y *= tscale; |
| 316 | coord += offset; |
| 317 | return Imath::V2f (coord.x, coord.y); |
| 318 | } |
| 319 | |
| 320 | |
| 321 |