first commit
This commit is contained in:
15
Minecraft.World/Rotate.cpp
Normal file
15
Minecraft.World/Rotate.cpp
Normal file
@@ -0,0 +1,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);
|
||||
}
|
||||
Reference in New Issue
Block a user