Test for ray intersection and corresponding handling (if any)
More...
#include <RayIntersectionTest.h>
|
| RayIntersectionTest () |
| Ray intersection test constructor.
|
|
bool | run () override |
|
| BaseTest (std::string const &name) |
| Base test constructor. More...
|
|
std::string | getName () |
|
void | operator() (std::ostream &out=std::cout, bool color=true) |
| Another way to call test function. More...
|
|
void | test (std::ostream &out=std::cout, bool color=true) |
| Perform the test and output its final status. More...
|
|
|
bool | checkIntersection (std::vector< double > it) |
| Check if the intersection returned by the getIntersection method is valid or not. More...
|
|
|
std::string const | name |
| The name for the test.
|
|
Test for ray intersection and corresponding handling (if any)
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
◆ checkIntersection()
bool HeliosTests::RayIntersectionTest::checkIntersection |
( |
std::vector< double > |
it | ) |
|
|
inlineprotected |
Check if the intersection returned by the getIntersection method is valid or not.
- Parameters
-
it | The intersection as returned by getIntersection method |
- Returns
- True if intersection happens, False otherwise
◆ run()
bool HeliosTests::RayIntersectionTest::run |
( |
| ) |
|
|
overridevirtual |
- See also
- BaseTest::run
UNS with seed "1" generates: (0.932557, 0.128124, 0.999041, 0.236089, 0.396581) (0.387911, 0.669746, 0.935539, 0.846311, 0.313274)
Implements HeliosTests::BaseTest.
The documentation for this class was generated from the following file: