Chorus forest slimes & math fixes

This commit is contained in:
paulevsGitch 2021-01-13 04:51:17 +03:00
parent 56d7a2b7c3
commit e09d1d2235
7 changed files with 14 additions and 6 deletions

View file

@ -297,10 +297,14 @@ public class MHelper {
return new Vec3d(hue, saturation, brightness);
}
public static final float radiandToDegrees(float value) {
public static final float radiansToDegrees(float value) {
return value * RAD_TO_DEG;
}
public static final float degreesToRadians(float value) {
return value / RAD_TO_DEG;
}
public static Vector3f cross(Vector3f vec1, Vector3f vec2)
{
float cx = vec1.getY() * vec2.getZ() - vec1.getZ() * vec2.getY();