some hyperplane changes:

- the coefficients are stored in a single vector
- added transformation methods
- removed Line* typedef since in 2D this is really an hyperplane
  and not really a line...
- HyperPlane => Hyperplane
This commit is contained in:
Gael Guennebaud
2008-08-29 13:30:37 +00:00
parent 409e82be06
commit 6d841512c7
3 changed files with 77 additions and 64 deletions

View File

@@ -29,7 +29,7 @@
template<typename PlaneType> void hyperplane(const PlaneType& _plane)
{
/* this test covers the following files:
HyperPlane.h
Hyperplane.h
*/
const int dim = _plane.dim();
@@ -62,10 +62,10 @@ template<typename PlaneType> void hyperplane(const PlaneType& _plane)
void test_hyperplane()
{
for(int i = 0; i < g_repeat; i++) {
CALL_SUBTEST( hyperplane(HyperPlane<float,2>()) );
CALL_SUBTEST( hyperplane(HyperPlane<float,3>()) );
CALL_SUBTEST( hyperplane(HyperPlane<double,4>()) );
CALL_SUBTEST( hyperplane(HyperPlane<std::complex<double>,5>()) );
CALL_SUBTEST( hyperplane(HyperPlane<double,Dynamic>(13)) );
CALL_SUBTEST( hyperplane(Hyperplane<float,2>()) );
CALL_SUBTEST( hyperplane(Hyperplane<float,3>()) );
CALL_SUBTEST( hyperplane(Hyperplane<double,4>()) );
CALL_SUBTEST( hyperplane(Hyperplane<std::complex<double>,5>()) );
CALL_SUBTEST( hyperplane(Hyperplane<double,Dynamic>(13)) );
}
}