MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / test

Function test

applications/test/vectorTools/Test-vectorTools.C:9–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9void 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
32int main()

Callers 3

mainFunction · 0.70
Test-cubicEqn.CFile · 0.50
mainFunction · 0.50

Calls 5

areParallelFunction · 0.85
areOrthogonalFunction · 0.85
areAcuteFunction · 0.85
areObtuseFunction · 0.85
degAngleBetweenFunction · 0.85

Tested by

no test coverage detected