| 565 | } |
| 566 | |
| 567 | Shape ShiftShape( // add xshift and yshift to shape coords, skipping unused points |
| 568 | const Shape& shape, // in |
| 569 | int xshift, // in |
| 570 | int yshift) // in |
| 571 | { |
| 572 | Shape shiftedshape(shape.clone()); |
| 573 | for (int i = 0; i < shape.rows; i++) |
| 574 | if (PointUsed(shape, i)) |
| 575 | { |
| 576 | shiftedshape(i, IX) += xshift; |
| 577 | shiftedshape(i, IY) += yshift; |
| 578 | } |
| 579 | return shiftedshape; |
| 580 | } |
| 581 | |
| 582 | Shape ShiftShape( // like above but shifts are doubles not ints |
| 583 | const Shape& shape, // in |
no test coverage detected