// xyz unit vector to Pixels. anbool tan_xyzarr2pixelxy(const tan_t* tan, const double* xyzpt, double *px, double *py) { double iwx=0, iwy=0; if (!tan_xyzarr2iwc(tan, xyzpt, &iwx, &iwy)) { return FALSE; } tan_iwc2pixelxy(tan, iwx, iwy, px, py); return TRUE; }
void tpv_iwc2pixelxy(const tpv_t* tpv, double u, double v, double *px, double* py) { double x,y; tan_iwc2pixelxy(&(tpv->wcstan), u, v, &x, &y); tpv_pixel_undistortion(tpv, x, y, px, py); }
void sip_iwc2pixelxy(const sip_t* sip, double u, double v, double *px, double* py) { double x,y; tan_iwc2pixelxy(&(sip->wcstan), u, v, &x, &y); sip_pixel_undistortion(sip, x, y, px, py); }