50int main(
int argc,
const char** argv)
52 const int height = (argc > 1) ? std::atoi(argv[1]) : 2;
53 std::cout <<
"height=" << height << std::endl;
60 std::array<Point, 3> m = {
Point(1, 0, 0),
Point(0, 1, 0),
Point(0, 0, 1) };
64 while (estimator.advance()) {
67 std::cout <<
"state=" << estimator.getState() <<
", isInReverseState=" << estimator.isInReverseState() << std::endl;
69 std::clog <<
"it = " << it <<
" "
70 << estimator.m(0) <<
" " << estimator.m(1) <<
" " << estimator.m(2) <<
" "
71 << estimator.getNormal() << std::endl;
74 ASSERT(estimator.getNormal() == n);