------------------------------------------------------------------------
| 595 | |
| 596 | //------------------------------------------------------------------------ |
| 597 | inline void trans_perspective::transform(double* px, double* py) const |
| 598 | { |
| 599 | double x = *px; |
| 600 | double y = *py; |
| 601 | double m = 1.0 / (x * w0 + y * w1 + w2); |
| 602 | *px = m * (x * sx + y * shx + tx); |
| 603 | *py = m * (x * shy + y * sy + ty); |
| 604 | } |
| 605 | |
| 606 | //------------------------------------------------------------------------ |
| 607 | inline void trans_perspective::transform_affine(double* x, double* y) const |
no outgoing calls
no test coverage detected