mirror of
https://gitea.murdle.top/murdle/mc-lce.git
synced 2026-03-11 03:28:59 +02:00
15 lines
274 B
C++
15 lines
274 B
C++
#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);
|
|
} |