Package org.cube.converter.util.math
Class MathUtil
java.lang.Object
org.cube.converter.util.math.MathUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanDoHacky(float angle, boolean old) static floatclamp(float num, float min, float max) static booleancloseEnoughAbs(float angle, float target) static booleanisValidJavaAngle(float rawAngle, boolean old) static booleanisValidRotation(Position3V position3V) static floatlimitAngle(float rawAngle, boolean old) static floattoHackyAngle(float rawAngle)
-
Method Details
-
isValidRotation
-
isValidJavaAngle
public static boolean isValidJavaAngle(float rawAngle, boolean old) -
limitAngle
public static float limitAngle(float rawAngle, boolean old) -
toHackyAngle
public static float toHackyAngle(float rawAngle) -
canDoHacky
public static boolean canDoHacky(float angle, boolean old) -
clamp
public static float clamp(float num, float min, float max) -
closeEnoughAbs
public static boolean closeEnoughAbs(float angle, float target)
-