20 lines
		
	
	
	
		
			700 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			700 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package net.minecraft.client.animation;
 | |
| 
 | |
| import net.fabricmc.api.EnvType;
 | |
| import net.fabricmc.api.Environment;
 | |
| import org.joml.Vector3f;
 | |
| 
 | |
| @Environment(EnvType.CLIENT)
 | |
| public class KeyframeAnimations {
 | |
| 	public static Vector3f posVec(float x, float y, float z) {
 | |
| 		return new Vector3f(x, -y, z);
 | |
| 	}
 | |
| 
 | |
| 	public static Vector3f degreeVec(float xDegrees, float yDegrees, float zDegrees) {
 | |
| 		return new Vector3f(xDegrees * (float) (Math.PI / 180.0), yDegrees * (float) (Math.PI / 180.0), zDegrees * (float) (Math.PI / 180.0));
 | |
| 	}
 | |
| 
 | |
| 	public static Vector3f scaleVec(double xScale, double yScale, double zScale) {
 | |
| 		return new Vector3f((float)(xScale - 1.0), (float)(yScale - 1.0), (float)(zScale - 1.0));
 | |
| 	}
 | |
| }
 |