-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inverse trig functions need to be in degrees
- Loading branch information
Showing
5 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/mchorse/blockbuster/client/particles/molang/functions/AcosDegrees.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package mchorse.blockbuster.client.particles.molang.functions; | ||
|
||
import mchorse.mclib.math.IValue; | ||
import mchorse.mclib.math.functions.trig.Acos; | ||
|
||
public class AcosDegrees extends Acos | ||
{ | ||
public AcosDegrees(IValue[] values, String name) throws Exception | ||
{ | ||
super(values, name); | ||
} | ||
|
||
@Override | ||
public double get() | ||
{ | ||
return super.get() / Math.PI * 180; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/mchorse/blockbuster/client/particles/molang/functions/AsinDegrees.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package mchorse.blockbuster.client.particles.molang.functions; | ||
|
||
import mchorse.mclib.math.IValue; | ||
import mchorse.mclib.math.functions.Function; | ||
import mchorse.mclib.math.functions.trig.Asin; | ||
|
||
public class AsinDegrees extends Asin | ||
{ | ||
public AsinDegrees(IValue[] values, String name) throws Exception | ||
{ | ||
super(values, name); | ||
} | ||
|
||
@Override | ||
public double get() | ||
{ | ||
return super.get() / Math.PI * 180; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/mchorse/blockbuster/client/particles/molang/functions/Atan2Degrees.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package mchorse.blockbuster.client.particles.molang.functions; | ||
|
||
import mchorse.mclib.math.IValue; | ||
import mchorse.mclib.math.functions.trig.Atan2; | ||
|
||
public class Atan2Degrees extends Atan2 | ||
{ | ||
public Atan2Degrees(IValue[] values, String name) throws Exception | ||
{ | ||
super(values, name); | ||
} | ||
|
||
@Override | ||
public double get() | ||
{ | ||
return super.get() / Math.PI * 180; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/mchorse/blockbuster/client/particles/molang/functions/AtanDegrees.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package mchorse.blockbuster.client.particles.molang.functions; | ||
|
||
import mchorse.mclib.math.IValue; | ||
import mchorse.mclib.math.functions.trig.Atan; | ||
|
||
public class AtanDegrees extends Atan | ||
{ | ||
public AtanDegrees(IValue[] values, String name) throws Exception | ||
{ | ||
super(values, name); | ||
} | ||
|
||
@Override | ||
public double get() | ||
{ | ||
return super.get() / Math.PI * 180; | ||
} | ||
} |