Commit 0d9be881 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[DOC]

parent f07aa188
...@@ -95,7 +95,7 @@ public: ...@@ -95,7 +95,7 @@ public:
expected.push_back( WPosition( ( ( 9.0 - 3 * std::sqrt( 2.0 ) ) / 4.0 + 2 * ( 5 + std::sqrt( 2.0 ) ) / 4.0 - 3.0 ) / 2.0 + 3, 1.5, 0 ) ); expected.push_back( WPosition( ( ( 9.0 - 3 * std::sqrt( 2.0 ) ) / 4.0 + 2 * ( 5 + std::sqrt( 2.0 ) ) / 4.0 - 3.0 ) / 2.0 + 3, 1.5, 0 ) );
expected.push_back( WPosition( 5, 1.5, 0 ) ); expected.push_back( WPosition( 5, 1.5, 0 ) );
m_cluster->generateCenterLine(); m_cluster->generateCenterLine();
assert_equals_delta( *m_cluster->getCenterLine(), expected, wlimits::FLT_EPS ); // decrese precision since it fails occasionally assert_equals_delta( *m_cluster->getCenterLine(), expected, wlimits::FLT_EPS );
std::cout << *m_cluster->getDataSetReference() << std::endl; std::cout << *m_cluster->getDataSetReference() << std::endl;
} }
...@@ -352,8 +352,7 @@ public: ...@@ -352,8 +352,7 @@ public:
private: private:
/** /**
* TS_ASSERT_DELTA needs the operator+, operator- and operator< to be implemented especially for WPositions the operator< and operator + * Compares to point sequences (aka lines) with a given delta.
* makes not really sense. Hence I implemented an assert by my one, giving reasonable out put.
* *
* \param first First line to compare with * \param first First line to compare with
* \param second Second line to compare with * \param second Second line to compare with
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment