------------------------------------------------------------------------
| 568 | |
| 569 | //------------------------------------------------------------------------ |
| 570 | inline void trans_perspective::transform(double* px, double* py) const |
| 571 | { |
| 572 | double x = *px; |
| 573 | double y = *py; |
| 574 | double m = 1.0 / (x*w0 + y*w1 + w2); |
| 575 | *px = m * (x*sx + y*shx + tx); |
| 576 | *py = m * (x*shy + y*sy + ty); |
| 577 | } |
| 578 | |
| 579 | //------------------------------------------------------------------------ |
| 580 | inline void trans_perspective::transform_affine(double* x, double* y) const |
no outgoing calls
no test coverage detected