#include "ZGo.h"



//---- AnimatedRotationMatrix ------------------------------------------------//

//---- AnimatedRotationMatrix

AnimatedRotationMatrix::AnimatedRotationMatrix(ZGo *zgo, ZGoPARAMS *input, ZGoPARAMS *output)
{
  this->zgo = zgo;
  this->input = input->setInput(this);
  this->output = output->setOutput(this);

  this->fnType = new ZGoNAME(zgo, "AnimatedRotationMatrix");

  //  Parameters

  time = (ZGoREAL *)input->get("time");
  result = (ZGoMATRIX *)output->get("result");
}



//---- process

void AnimatedRotationMatrix::process()
{
  time->process();

  result->rotateYMatrix(time->value * 3.14159 / 20);
}



//---- end of file -----------------------------------------------------------//
