Helios++
Helios software for LiDAR simulations
HeliosTests::RayIntersectionTest Class Reference

Test for ray intersection and corresponding handling (if any) More...

#include <RayIntersectionTest.h>

Inheritance diagram for HeliosTests::RayIntersectionTest:
Collaboration diagram for HeliosTests::RayIntersectionTest:

Public Member Functions

 RayIntersectionTest ()
 Ray intersection test constructor.
 
bool run () override
 
- Public Member Functions inherited from HeliosTests::BaseTest
 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...
 

Protected Member Functions

bool checkIntersection (std::vector< double > it)
 Check if the intersection returned by the getIntersection method is valid or not. More...
 

Additional Inherited Members

- Protected Attributes inherited from HeliosTests::BaseTest
std::string const name
 The name for the test.
 

Detailed Description

Test for ray intersection and corresponding handling (if any)

Author
Alberto M. Esmoris Pena
Version
1.0

Member Function Documentation

◆ checkIntersection()

bool HeliosTests::RayIntersectionTest::checkIntersection ( std::vector< double >  it)
inlineprotected

Check if the intersection returned by the getIntersection method is valid or not.

Parameters
itThe 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: