OpenWalnut  1.4.0
Public Member Functions | Private Member Functions
WGridTransformTest Class Reference

Tests the WGridTransform class. More...

#include <WGridTransformOrtho_test.h>

+ Inheritance diagram for WGridTransformTest:

List of all members.

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.

Private Member Functions

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

Detailed Description

Tests the WGridTransform class.

Definition at line 44 of file WGridTransformOrtho_test.h.


Member Function Documentation

void WGridTransformTest::compareVectors ( WVector3d const &  v1,
WVector3d const &  v2,
double  delta 
) const [inline, private]

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 284 of file WGridTransformOrtho_test.h.

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

void WGridTransformTest::testInstantiation ( void  ) [inline]

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