Class AngleHelper
java.lang.Object
com.simibubi.create.foundation.utility.AngleHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatangleLerp(double pct, double current, double target) static floatdeg(double angle) static floatgetShortestAngleDiff(double current, double target) static floathorizontalAngle(net.minecraft.core.Direction facing) static floatrad(double angle) static floatverticalAngle(net.minecraft.core.Direction facing)
-
Constructor Details
-
AngleHelper
public AngleHelper()
-
-
Method Details
-
horizontalAngle
public static float horizontalAngle(net.minecraft.core.Direction facing) -
verticalAngle
public static float verticalAngle(net.minecraft.core.Direction facing) -
rad
public static float rad(double angle) -
deg
public static float deg(double angle) -
angleLerp
public static float angleLerp(double pct, double current, double target) -
getShortestAngleDiff
public static float getShortestAngleDiff(double current, double target)
-