Ocean
Loading...
Searching...
No Matches
TestFrustum.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_TESTMATH_TEST_FRUSTUM_H
9#define META_OCEAN_TEST_TESTMATH_TEST_FRUSTUM_H
10
12
14
15#include "ocean/math/Frustum.h"
16
17namespace Ocean
18{
19
20namespace Test
21{
22
23namespace TestMath
24{
25
26/**
27 * This class implements frustum tests.
28 * @ingroup testmath
29 */
30class OCEAN_TEST_MATH_EXPORT TestFrustum
31{
32 public:
33
34 /**
35 * Invokes all frustum tests.
36 * @param testDuration Duration of each test, with range (0, infinity)
37 * @param selector The test selector
38 * @return True, if succeeded
39 */
40 static bool test(const double testDuration, const TestSelector& selector);
41
42 /**
43 * Tests the constructors.
44 * @param testDuration Duration of each test, with range (0, infinity)
45 * @return True, if succeeded
46 */
47 static bool testConstructors(const double testDuration);
48
49 /**
50 * Tests isInside() for points.
51 * @param testDuration Duration of each test, with range (0, infinity)
52 * @return True, if succeeded
53 */
54 static bool testIsInsidePoint(const double testDuration);
55};
56
57}
58
59}
60
61}
62
63#endif // META_OCEAN_TEST_TESTMATH_TEST_FRUSTUM_H
This class implements frustum tests.
Definition TestFrustum.h:31
static bool test(const double testDuration, const TestSelector &selector)
Invokes all frustum tests.
static bool testIsInsidePoint(const double testDuration)
Tests isInside() for points.
static bool testConstructors(const double testDuration)
Tests the constructors.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15