25 #ifndef WGRIDTRANSFORMORTHO_TEST_H
26 #define WGRIDTRANSFORMORTHO_TEST_H
34 #include <boost/shared_ptr.hpp>
37 #include <cxxtest/TestSuite.h>
39 #include "../../common/exceptions/WPreconditionNotMet.h"
41 #include "../WGridTransformOrtho.h"
120 TS_ASSERT_EQUALS( v.
getOffsetX(), sqrt( 8.0 ) );
121 TS_ASSERT_EQUALS( v.
getOffsetY(), sqrt( 18.0 ) );
213 TS_ASSERT_DELTA( 0.0, w[ 0 ], 0.0001 );
214 TS_ASSERT_DELTA( 7.0, w[ 1 ], 0.0001 );
215 TS_ASSERT_DELTA( 4.9, w[ 2 ], 0.0001 );
271 TS_ASSERT_DELTA( length(
WVector3d( 1.0, 1.0, 1.0 )
273 TS_ASSERT_DELTA( length(
WVector3d( 1.0, 1.0, 1.0 )
288 TS_ASSERT_DELTA( v1[ 0 ], v2[ 0 ], delta );
289 TS_ASSERT_DELTA( v1[ 1 ], v2[ 1 ], delta );
290 TS_ASSERT_DELTA( v1[ 2 ], v2[ 2 ], delta );
294 #endif // WGRIDTRANSFORMORTHO_TEST_H
WMatrix & makeIdentity()
Makes the matrix contain the identity matrix, i.e.
An exception that gets thrown when preconditions of a function are not met.