minecraft-src/net/minecraft/client/model/ModelUtils.java
2025-07-04 01:41:11 +03:00

21 lines
425 B
Java

package net.minecraft.client.model;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@Environment(EnvType.CLIENT)
public class ModelUtils {
public static float rotlerpRad(float min, float max, float delta) {
float f = max - min;
while (f < (float) -Math.PI) {
f += (float) (Math.PI * 2);
}
while (f >= (float) Math.PI) {
f -= (float) (Math.PI * 2);
}
return min + delta * f;
}
}