24 Sep
2004
24 Sep
'04
10:32 p.m.
Here is the transform that I am using, is this proper? :
double x1 = NR_MATRIX_DF_TRANSFORM_X(tf, bp->x1, bp->y1); double y1 = NR_MATRIX_DF_TRANSFORM_Y(tf, bp->x1, bp->y1);
Yes, if tf is the correct matrix. Now the perferred way of writing this is:
NR::Point transformed = NR::Point(bp->x1, bp->y1) * NR::Matrix(tf);
and then use transformed[NR::X] and transformed[NR::Y].