25 #ifndef WUNITSPHERECOORDINATES_TEST_H
26 #define WUNITSPHERECOORDINATES_TEST_H
32 #include <cxxtest/TestSuite.h>
34 #include "core/common/WLogger.h"
35 #include "core/common/math/WGeometryFunctions.h"
36 #include "core/common/math/WSymmetricSphericalHarmonic.h"
38 #include "../WUnitSphereCoordinates.h"
55 for(
size_t i = 0; i < 3; i++ )
57 TS_ASSERT_DELTA( n[ i ], n2[ i ], 0.001 );
67 for(
size_t i = 0; i < 3; i++ )
69 TS_ASSERT_DELTA( n[ i ], n2[ i ], 0.001 );
Test class for the WUnitSphereCoordinates template.
void testSphereToEuclideanConversion()
Test implicit conversion between sphere and euclidean coordinates.
This class stores coordinates on the unit sphere.
void setEuclidean(WMatrixFixed< T, 3, 1 > vector)
Returns the stored sphere coordinates as Euclidean coordinates.
WMatrixFixed< T, 3, 1 > getEuclidean() const
Returns the stored sphere coordinates as Euclidean coordinates.