#include "idealspacing.hh"
#include "p-col.hh"
#include "p-score.hh"
#include "debug.hh"

void
Idealspacing::print() const
{
#ifndef NPRINT
    mtor << "idealspacing {" ;
    mtor << "distance "<<space<< " strength " << hooke ;
    mtor << "left " << left->rank_i() << " right " << right->rank_i() << "}\n";
#endif
}

Idealspacing::Idealspacing(PCol const * l,PCol const * r)
{
    space = 0.0;
    hooke = 0.0;
    left = l;
    right = r;
}

void
Idealspacing::OK() const
{
#ifndef NDEBUG
    assert(hooke >= 0 && left  && right);
#endif    
}
