25 #ifndef WGRIDTRANSFORMORTHO_TEST_H
26 #define WGRIDTRANSFORMORTHO_TEST_H
34 #include <cxxtest/TestSuite.h>
36 #include "../../common/exceptions/WPreconditionNotMet.h"
37 #include "../WGridTransformOrtho.h"
116 TS_ASSERT_EQUALS( v.
getOffsetX(), sqrt( 8.0 ) );
117 TS_ASSERT_EQUALS( v.
getOffsetY(), sqrt( 18.0 ) );
209 TS_ASSERT_DELTA( 0.0, w[ 0 ], 0.0001 );
210 TS_ASSERT_DELTA( 7.0, w[ 1 ], 0.0001 );
211 TS_ASSERT_DELTA( 4.9, w[ 2 ], 0.0001 );
267 TS_ASSERT_DELTA( length(
WVector3d( 1.0, 1.0, 1.0 )
269 TS_ASSERT_DELTA( length(
WVector3d( 1.0, 1.0, 1.0 )
284 TS_ASSERT_DELTA( v1[ 0 ], v2[ 0 ], delta );
285 TS_ASSERT_DELTA( v1[ 1 ], v2[ 1 ], delta );
286 TS_ASSERT_DELTA( v1[ 2 ], v2[ 2 ], delta );
WMatrix & makeIdentity()
Makes the matrix contain the identity matrix, i.e.
An exception that gets thrown when preconditions of a function are not met.