25 #ifndef WGRIDTRANSFORMORTHO_TEST_H
26 #define WGRIDTRANSFORMORTHO_TEST_H
33 #include <boost/shared_ptr.hpp>
35 #include <cxxtest/TestSuite.h>
37 #include "../../common/exceptions/WPreconditionNotMet.h"
39 #include "../WGridTransformOrtho.h"
118 TS_ASSERT_EQUALS( v.
getOffsetX(), sqrt( 8.0 ) );
119 TS_ASSERT_EQUALS( v.
getOffsetY(), sqrt( 18.0 ) );
211 TS_ASSERT_DELTA( 0.0, w[ 0 ], 0.0001 );
212 TS_ASSERT_DELTA( 7.0, w[ 1 ], 0.0001 );
213 TS_ASSERT_DELTA( 4.9, w[ 2 ], 0.0001 );
269 TS_ASSERT_DELTA( length(
WVector3d( 1.0, 1.0, 1.0 )
271 TS_ASSERT_DELTA( length(
WVector3d( 1.0, 1.0, 1.0 )
286 TS_ASSERT_DELTA( v1[ 0 ], v2[ 0 ], delta );
287 TS_ASSERT_DELTA( v1[ 1 ], v2[ 1 ], delta );
288 TS_ASSERT_DELTA( v1[ 2 ], v2[ 2 ], delta );
292 #endif // WGRIDTRANSFORMORTHO_TEST_H