From 85d4b9f4ecb711660ed64ac5633501476d313808 Mon Sep 17 00:00:00 2001 From: FrozenBrain Date: Thu, 19 May 2016 19:29:15 +0200 Subject: [PATCH] Fix MathUtils.dSin --- .../src/main/java/com/sk89q/worldedit/math/MathUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/math/MathUtils.java b/worldedit-core/src/main/java/com/sk89q/worldedit/math/MathUtils.java index 80f310af5..743b6e5da 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/math/MathUtils.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/math/MathUtils.java @@ -78,7 +78,7 @@ public final class MathUtils { /** * Returns the sine of an angle given in degrees. This is better than just - * {@code Math.cos(Math.toRadians(degrees))} because it provides a more + * {@code Math.sin(Math.toRadians(degrees))} because it provides a more * accurate result for angles divisible by 90 degrees. * * @param degrees the angle @@ -102,7 +102,7 @@ public final class MathUtils { return -1.0; } } - return Math.cos(Math.toRadians(degrees)); + return Math.sin(Math.toRadians(degrees)); } }