
#include <cylinder.h>
#include <mathlib.h>


cylinder::cylinder
(
  point3<double> const & nml_,
  point3<double> const & pos_,
  doublec radius_,
  doublec height_
)
  : nml(nml_), pos(pos_), radius(radius_),
  height(height_)
{
}


cylinder::operator stringc () const
{
  stringstream ss;
  ss << nml.x << " " << nml.y << " " << nml.z << "  ";
  ss << pos.x << " " << pos.y << " " << pos.z << "  "; 
  ss << radius << " " << height;

  return ss.str();
}


