#ifndef SPRINGLINEARGEOM_H
#define SPRINGLINEARGEOM_H

#include <vector>
using namespace std;

#include <typedefs.h>


class springlineargeom
{
public:
  
  /** N points. */
  uint N;

  /** Relative to the mass point. */
  vector<double> xoffsets;
  /** N+1 spring natural(no forces) lengths. */
  vector<double> lengths;
  /** Actual spring lengths. */
  vector<double> lengthscurrent;

  /** lengths current updated. */
  void lengths_update();

  /**  */
  void construct(uintc N_);
};

#endif



