| 782 | } |
| 783 | |
| 784 | Box3f |
| 785 | transformSimple (const Box3f& b, const M44f& M) |
| 786 | { |
| 787 | Box3f b1; |
| 788 | |
| 789 | for (int i = 0; i < 8; ++i) |
| 790 | { |
| 791 | V3f p; |
| 792 | |
| 793 | for (int j = 0; j < 3; ++j) |
| 794 | p[j] = ((i >> j) & 1) ? b.max[j] : b.min[j]; |
| 795 | |
| 796 | b1.extendBy (p * M); |
| 797 | } |
| 798 | |
| 799 | return b1; |
| 800 | } |
| 801 | |
| 802 | void |
| 803 | boxMatrixTransform () |
no test coverage detected