Package team.lodestar.lodestone.helpers
Class AngleHelper
java.lang.Object
team.lodestar.lodestone.helpers.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 floatgetShortestAngleDiff(double current, double target, float hint) 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) -
getShortestAngleDiff
public static float getShortestAngleDiff(double current, double target, float hint)
-