MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
TestAABB.cpp File Reference
#include "MobileRT/Accelerators/AABB.hpp"
#include <gtest/gtest.h>
Include dependency graph for TestAABB.cpp:

Classes

class  TestAABB
 

Namespaces

 anonymous_namespace{TestAABB.cpp}
 

Functions

 TEST_F (TestAABB, TestInvalidConstructor)
 
 TEST_F (TestAABB, TestConstructor)
 
 TEST_F (TestAABB, TestCentroid)
 
 TEST_F (TestAABB, TestSurfaceArea)
 
 TEST_F (TestAABB, TestSurfaceArea2)
 
 TEST_F (TestAABB, TestMinPoint)
 
 TEST_F (TestAABB, TestMaxPoint)
 
 TEST_F (TestAABB, TestSurroundingBox)
 
 TEST_F (TestAABB, TestRayIntersectionOk)
 
 TEST_F (TestAABB, TestRayIntersectionFail)
 

Variables

const AABB anonymous_namespace{TestAABB.cpp}::box1 {::glm::vec3 {0.0F, 0.0F, 0.0F}, ::glm::vec3 {1.0F, 0.0F, 0.0F}}
 

Function Documentation

◆ TEST_F() [1/10]

TEST_F ( TestAABB  ,
TestInvalidConstructor   
)

Tests the AABB constructor with invalid parameters.

◆ TEST_F() [2/10]

TEST_F ( TestAABB  ,
TestConstructor   
)

Tests the AABB constructor.

◆ TEST_F() [3/10]

TEST_F ( TestAABB  ,
TestCentroid   
)

Tests the calculation of the centroid in an AABB.

◆ TEST_F() [4/10]

TEST_F ( TestAABB  ,
TestSurfaceArea   
)

Tests the calculation of the surface area in an AABB.

◆ TEST_F() [5/10]

TEST_F ( TestAABB  ,
TestSurfaceArea2   
)

Tests the calculation of the surface area in an AABB.

◆ TEST_F() [6/10]

TEST_F ( TestAABB  ,
TestMinPoint   
)

Tests the calculation of the minimum point in an AABB.

◆ TEST_F() [7/10]

TEST_F ( TestAABB  ,
TestMaxPoint   
)

Tests the calculation of the maximum point in an AABB.

◆ TEST_F() [8/10]

TEST_F ( TestAABB  ,
TestSurroundingBox   
)

Tests the calculation of the surrounding box of 2 AABBs.

Here is the call graph for this function:

◆ TEST_F() [9/10]

TEST_F ( TestAABB  ,
TestRayIntersectionOk   
)

Tests the intersection of a Ray with an AABB.

◆ TEST_F() [10/10]

TEST_F ( TestAABB  ,
TestRayIntersectionFail   
)

Tests the intersection of a Ray with an AABB which should fail.