aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Rotate.cpp
blob: f422343e6b2a25219c81dde04a6dfd421be76b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "stdafx.h"
#include "Rotate.h"

Rotate::Rotate(Synth *synth, float angle)
{
    this->synth = synth;

    _sin = sin(angle);
    _cos = cos(angle);
}

double Rotate::getValue(double x, double y)
{
	return synth->getValue(x * _cos + y * _sin, y * _cos - x * _sin);
}