KeyframeAnimations.java
net.minecraft.client.animation.KeyframeAnimations
信息
- 全限定名:net.minecraft.client.animation.KeyframeAnimations
- 类型:public class
- 包:net.minecraft.client.animation
- 源码路径:src/main/java/net/minecraft/client/animation/KeyframeAnimations.java
- 起始行号:L8
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static Vector3f posVec(float x, float y, float z) @ L9
- 方法名:posVec
- 源码定位:L9
- 返回类型:Vector3f
- 修饰符:public static
参数:
- x: float
- y: float
- z: float
说明:
TODO
public static Vector3f degreeVec(float x, float y, float z) @ L13
- 方法名:degreeVec
- 源码定位:L13
- 返回类型:Vector3f
- 修饰符:public static
参数:
- x: float
- y: float
- z: float
说明:
TODO
public static Vector3f scaleVec(double x, double y, double z) @ L17
- 方法名:scaleVec
- 源码定位:L17
- 返回类型:Vector3f
- 修饰符:public static
参数:
- x: double
- y: double
- z: double
说明:
TODO
代码
@OnlyIn(Dist.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 x, float y, float z) {
return new Vector3f(x * (float) (Math.PI / 180.0), y * (float) (Math.PI / 180.0), z * (float) (Math.PI / 180.0));
}
public static Vector3f scaleVec(double x, double y, double z) {
return new Vector3f((float)(x - 1.0), (float)(y - 1.0), (float)(z - 1.0));
}
}引用的其他类
- 无