Class MathUtils
java.lang.Object
ltd.icecold.orangeengine.api.math.MathUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenMatrix4f
getModelMatrixIntegral(float prevPosX, float posX, float prevPosY, float posY, float prevPosZ, float posZ, float prevPitch, float pitch, float prevYaw, float yaw, float partialTick, float scaleX, float scaleY, float scaleZ)
static Vec3f
getVectorForRotation(float pitch, float yaw)
static float
lerpBetween(float f1, float f2, float zero2one)
static float
rotlerp(float from, float to, float limit)
static float
wrapDegrees(float data)
-
Constructor Details
-
MathUtils
public MathUtils()
-
-
Method Details
-
getModelMatrixIntegral
public static OpenMatrix4f getModelMatrixIntegral(float prevPosX, float posX, float prevPosY, float posY, float prevPosZ, float posZ, float prevPitch, float pitch, float prevYaw, float yaw, float partialTick, float scaleX, float scaleY, float scaleZ) -
getVectorForRotation
-
lerpBetween
public static float lerpBetween(float f1, float f2, float zero2one) -
rotlerp
public static float rotlerp(float from, float to, float limit) -
wrapDegrees
public static float wrapDegrees(float data)
-