| 7 | |
| 8 | |
| 9 | void test(const vector& a, const vector& b, const scalar tolerance) |
| 10 | { |
| 11 | Info<< "Vectors " << a << " and " << b |
| 12 | << " are (to tolerance of " << tolerance << "): "; |
| 13 | |
| 14 | if (vectorTools::areParallel(a, b, tolerance)) |
| 15 | Info<< " parallel "; |
| 16 | |
| 17 | if (vectorTools::areOrthogonal(a, b, tolerance)) |
| 18 | Info<< " orthogonal "; |
| 19 | |
| 20 | if (vectorTools::areAcute(a, b)) |
| 21 | Info<< " acute "; |
| 22 | |
| 23 | if (vectorTools::areObtuse(a, b)) |
| 24 | Info<< " obtuse "; |
| 25 | |
| 26 | Info<< ", angle = " << vectorTools::degAngleBetween(a, b); |
| 27 | |
| 28 | Info<< endl; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | int main() |
no test coverage detected