OpenWalnut  1.5.0dev
Public Member Functions | Private Member Functions | List of all members
WGridTransformTest Class Reference

Tests the WGridTransform class. More...

#include <WGridTransformOrtho_test.h>

+ Inheritance diagram for WGridTransformTest:
+ Collaboration diagram for WGridTransformTest:

Public Member Functions

void testInstantiation ()
 Test if all data fields get initialized correctly. More...
 
void testCompareConstructors ()
 Different constructors should not yield differently initialized data fields. More...
 
void testTransformationToWorldSpace ()
 Test transformation from grid space to world space. More...
 
void testTransformationToGridSpace ()
 Test transformation from world space to grid space. More...
 

Private Member Functions

void compareVectors (WVector3d const &v1, WVector3d const &v2, double delta) const
 Compares two vectors, element by element. More...
 

Detailed Description

Tests the WGridTransform class.

Definition at line 42 of file WGridTransformOrtho_test.h.

Member Function Documentation

◆ compareVectors()

void WGridTransformTest::compareVectors ( WVector3d const &  v1,
WVector3d const &  v2,
double  delta 
) const
inlineprivate

Compares two vectors, element by element.

Parameters
v1The first vector.
v2The second vector.
deltaThe maximum absolute difference between the elements of the vectors.

Definition at line 282 of file WGridTransformOrtho_test.h.

Referenced by testCompareConstructors(), testInstantiation(), testTransformationToGridSpace(), and testTransformationToWorldSpace().

+ Here is the caller graph for this function:

◆ testCompareConstructors()

void WGridTransformTest::testCompareConstructors ( )
inline

◆ testInstantiation()

void WGridTransformTest::testInstantiation ( )
inline

◆ testTransformationToGridSpace()

void WGridTransformTest::testTransformationToGridSpace ( )
inline

Test transformation from world space to grid space.

Definition at line 219 of file WGridTransformOrtho_test.h.

References compareVectors(), WGridTransformOrthoTemplate< T >::directionToGridSpace(), WMatrix< T >::makeIdentity(), and WGridTransformOrthoTemplate< T >::positionToGridSpace().

+ Here is the call graph for this function:

◆ testTransformationToWorldSpace()

void WGridTransformTest::testTransformationToWorldSpace ( )
inline

Test transformation from grid space to world space.

Definition at line 158 of file WGridTransformOrtho_test.h.

References compareVectors(), WGridTransformOrthoTemplate< T >::directionToWorldSpace(), WMatrix< T >::makeIdentity(), and WGridTransformOrthoTemplate< T >::positionToWorldSpace().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: