1#include "stdafx.h"
2#include "Rotate.h"
3
4Rotate::Rotate(Synth *synth, float angle)
5{
6 this->synth = synth;
7
8 _sin = sin(angle);
9 _cos = cos(angle);
10}
11
12double Rotate::getValue(double x, double y)
13{
14 return synth->getValue(x * _cos + y * _sin, y * _cos - x * _sin);
15}