#include "ZGo.h"



//---- ZGoDISTORTION3D -------------------------------------------------------//

ZGoDISTORTION3D::ZGoDISTORTION3D(ZGo *zgo)
{
  this->zgo = zgo;
}

void ZGoDISTORTION3D::distort(float *point, float *result)
{
  float x = point[0];
  float y = point[1];
  float z = point[2];

  y += 0.2 * sin(x*3.14159/0.5 + time*3.14159/3.681826 + 0.27863);
  z += 0.2 * sin(x*3.14159/0.5 + time*3.14159/2.208365 + 0.92734);

  result[0] = x;
  result[1] = y;
  result[2] = z;
}



//---- end of file -----------------------------------------------------------//
