OpenWalnut
1.3.1
|
Tests the WGridTransform class. More...
#include <WGridTransformOrtho_test.h>
Public Member Functions | |
void | testInstantiation () |
Test if all data fields get initialized correctly. | |
void | testCompareConstructors () |
Different constructors should not yield differently initialized data fields. | |
void | testTransformationToWorldSpace () |
Test transformation from grid space to world space. | |
void | testTransformationToGridSpace () |
Test transformation from world space to grid space. |
Tests the WGridTransform class.
Definition at line 44 of file WGridTransformOrtho_test.h.
|
inline |
Different constructors should not yield differently initialized data fields.
Definition at line 135 of file WGridTransformOrtho_test.h.
References WGridTransformOrthoTemplate< T >::getDirectionX(), WGridTransformOrthoTemplate< T >::getDirectionY(), WGridTransformOrthoTemplate< T >::getDirectionZ(), WGridTransformOrthoTemplate< T >::getOffsetX(), WGridTransformOrthoTemplate< T >::getOffsetY(), WGridTransformOrthoTemplate< T >::getOffsetZ(), WGridTransformOrthoTemplate< T >::getOrigin(), and WMatrix< T >::makeIdentity().
|
inline |
Test if all data fields get initialized correctly.
Constructors should throw a WPreconditionNotMet exception if any input values are invalid.
Definition at line 51 of file WGridTransformOrtho_test.h.
References WGridTransformOrthoTemplate< T >::getDirectionX(), WGridTransformOrthoTemplate< T >::getDirectionY(), WGridTransformOrthoTemplate< T >::getDirectionZ(), WGridTransformOrthoTemplate< T >::getOffsetX(), WGridTransformOrthoTemplate< T >::getOffsetY(), WGridTransformOrthoTemplate< T >::getOffsetZ(), WGridTransformOrthoTemplate< T >::getOrigin(), WGridTransformOrthoTemplate< T >::getUnitDirectionX(), WGridTransformOrthoTemplate< T >::getUnitDirectionY(), WGridTransformOrthoTemplate< T >::getUnitDirectionZ(), and WMatrix< T >::makeIdentity().
|
inline |
Test transformation from world space to grid space.
Definition at line 221 of file WGridTransformOrtho_test.h.
References WGridTransformOrthoTemplate< T >::directionToGridSpace(), WMatrix< T >::makeIdentity(), and WGridTransformOrthoTemplate< T >::positionToGridSpace().
|
inline |
Test transformation from grid space to world space.
Definition at line 160 of file WGridTransformOrtho_test.h.
References WGridTransformOrthoTemplate< T >::directionToWorldSpace(), WMatrix< T >::makeIdentity(), and WGridTransformOrthoTemplate< T >::positionToWorldSpace().