Ocean
TestOctree.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_TEST_TESTGEOMETRY_TEST_OCTREE_H
9 #define META_OCEAN_TEST_TESTGEOMETRY_TEST_OCTREE_H
10 
12 
13 #include "ocean/base/Worker.h"
14 
15 namespace Ocean
16 {
17 
18 namespace Test
19 {
20 
21 namespace TestGeometry
22 {
23 
24 /**
25  * This class implements homography tests.
26  * @ingroup testgeometry
27  */
28 class OCEAN_TEST_GEOMETRY_EXPORT TestOctree
29 {
30  public:
31 
32  /**
33  * Tests all octree functions.
34  * @param testDuration Number of seconds for each test, with range (0, infinity)
35  * @return True, if succeeded
36  */
37  static bool test(const double testDuration);
38 
39  /**
40  * Tests the constructor.
41  * @param testDuration Number of seconds for each test, with range (0, infinity)
42  * @return True, if succeeded
43  */
44  static bool testConstructor(const double testDuration);
45 
46  /**
47  * Tests the closestPoints() function.
48  * @param testDuration Number of seconds for each test, with range (0, infinity)
49  * @return True, if succeeded
50  */
51  static bool testClosestPoints(const double testDuration);
52 
53  /**
54  * Tests the intersectingLeafs() function for rays.
55  * @param testDuration Number of seconds for each test, with range (0, infinity)
56  * @return True, if succeeded
57  */
58  static bool testIntersectingLeafsForRays(const double testDuration);
59 
60  /**
61  * Tests edge cases.
62  * @param testDuration Number of seconds for each test, with range (0, infinity)
63  * @return True, if succeeded
64  */
65  static bool testEdgeCases(const double testDuration);
66 };
67 
68 }
69 
70 }
71 
72 }
73 
74 #endif // META_OCEAN_TEST_TESTGEOMETRY_TEST_OCTREE_H
This class implements homography tests.
Definition: TestOctree.h:29
static bool testIntersectingLeafsForRays(const double testDuration)
Tests the intersectingLeafs() function for rays.
static bool testClosestPoints(const double testDuration)
Tests the closestPoints() function.
static bool testEdgeCases(const double testDuration)
Tests edge cases.
static bool testConstructor(const double testDuration)
Tests the constructor.
static bool test(const double testDuration)
Tests all octree functions.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15