Axis.java
com.mojang.math.Axis
信息
- 全限定名:com.mojang.math.Axis
- 类型:public interface
- 包:com.mojang.math
- 源码路径:src/main/java/com/mojang/math/Axis.java
- 起始行号:L7
- 职责:
TODO
字段/常量
-
XN- 类型:
Axis - 修饰符:
package-private - 源码定位:
L8 - 说明:
TODO
- 类型:
-
XP- 类型:
Axis - 修饰符:
package-private - 源码定位:
L9 - 说明:
TODO
- 类型:
-
YN- 类型:
Axis - 修饰符:
package-private - 源码定位:
L10 - 说明:
TODO
- 类型:
-
YP- 类型:
Axis - 修饰符:
package-private - 源码定位:
L11 - 说明:
TODO
- 类型:
-
ZN- 类型:
Axis - 修饰符:
package-private - 源码定位:
L12 - 说明:
TODO
- 类型:
-
ZP- 类型:
Axis - 修饰符:
package-private - 源码定位:
L13 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
static Axis of(Vector3f vector) @ L15
- 方法名:of
- 源码定位:L15
- 返回类型:Axis
- 修饰符:static
参数:
- vector: Vector3f
说明:
TODO
Quaternionf rotation(float angle) @ L19
- 方法名:rotation
- 源码定位:L19
- 返回类型:Quaternionf
- 修饰符:package-private
参数:
- angle: float
说明:
TODO
default Quaternionf rotationDegrees(float angle) @ L21
- 方法名:rotationDegrees
- 源码定位:L21
- 返回类型:Quaternionf
- 修饰符:default
参数:
- angle: float
说明:
TODO
代码
@FunctionalInterface
public interface Axis {
Axis XN = angle -> new Quaternionf().rotationX(-angle);
Axis XP = angle -> new Quaternionf().rotationX(angle);
Axis YN = angle -> new Quaternionf().rotationY(-angle);
Axis YP = angle -> new Quaternionf().rotationY(angle);
Axis ZN = angle -> new Quaternionf().rotationZ(-angle);
Axis ZP = angle -> new Quaternionf().rotationZ(angle);
static Axis of(Vector3f vector) {
return angle -> new Quaternionf().rotationAxis(angle, vector);
}
Quaternionf rotation(float angle);
default Quaternionf rotationDegrees(float angle) {
return this.rotation(angle * (float) (Math.PI / 180.0));
}
}引用的其他类
- 无