Finish pure daisy integration

This commit is contained in:
Vincent Lee committed 2016-01-04 22:46:24 -06:00
1 parent 9bf2e0c555
commit 10d095d656
1 file changed
+1 -1
@@ -94,7 +94,7 @@ public class PetalApothecaryRecipeCategory implements IRecipeCategory {
private Point rotatePointAbout(Point in, Point about, double degrees) {
double rad = degrees * Math.PI / 180.0;
double newX = Math.cos(rad) * (in.x - about.x) - Math.sin(rad) * (in.y - about.y) + about.x;
double newY = Math.sin(rad) * (in.x - about.x) - Math.cos(rad) * (in.y - about.y) + about.y;
double newY = Math.sin(rad) * (in.x - about.x) + Math.cos(rad) * (in.y - about.y) + about.y;
return new Point(((int) newX), ((int) newY));
}