程序包 com.mojang.math
类 Transformation
java.lang.Object
com.mojang.math.Transformation
- 所有已实现的接口:
IForgeTransformation
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec<Transformation>
private boolean
static final com.mojang.serialization.Codec<Transformation>
private static final Transformation
private org.joml.Quaternionf
private final org.joml.Matrix4f
private org.joml.Matrix3f
private org.joml.Quaternionf
private org.joml.Vector3f
private org.joml.Vector3f
-
构造器概要
构造器构造器说明Transformation
(org.joml.Matrix4f p_253689_) Transformation
(org.joml.Vector3f p_253831_, org.joml.Quaternionf p_253846_, org.joml.Vector3f p_254502_, org.joml.Quaternionf p_253912_) -
方法概要
修饰符和类型方法说明private void
compose
(Transformation pOther) private static org.joml.Matrix4f
compose
(org.joml.Vector3f pTranslation, org.joml.Quaternionf pLeftRotation, org.joml.Vector3f pScale, org.joml.Quaternionf pRightRotation) private void
boolean
org.joml.Quaternionf
org.joml.Matrix4f
org.joml.Matrix3f
org.joml.Quaternionf
org.joml.Vector3f
getScale()
org.joml.Vector3f
int
hashCode()
static Transformation
identity()
inverse()
slerp
(Transformation pTransformation, float pDelta) 从接口继承的方法 net.minecraftforge.common.extensions.IForgeTransformation
applyOrigin, blockCenterToCorner, blockCornerToCenter, isIdentity, rotateTransform, transformNormal, transformPosition
-
字段详细资料
-
matrix
private final org.joml.Matrix4f matrix -
CODEC
-
EXTENDED_CODEC
-
decomposed
private boolean decomposed -
translation
@Nullable private org.joml.Vector3f translation -
leftRotation
@Nullable private org.joml.Quaternionf leftRotation -
scale
@Nullable private org.joml.Vector3f scale -
rightRotation
@Nullable private org.joml.Quaternionf rightRotation -
IDENTITY
-
normalTransform
private org.joml.Matrix3f normalTransform
-
-
构造器详细资料
-
Transformation
public Transformation(@Nullable org.joml.Matrix4f p_253689_) -
Transformation
public Transformation(@Nullable org.joml.Vector3f p_253831_, @Nullable org.joml.Quaternionf p_253846_, @Nullable org.joml.Vector3f p_254502_, @Nullable org.joml.Quaternionf p_253912_)
-
-
方法详细资料
-
identity
-
compose
-
inverse
-
ensureDecomposed
private void ensureDecomposed() -
compose
private static org.joml.Matrix4f compose(@Nullable org.joml.Vector3f pTranslation, @Nullable org.joml.Quaternionf pLeftRotation, @Nullable org.joml.Vector3f pScale, @Nullable org.joml.Quaternionf pRightRotation) -
getMatrix
public org.joml.Matrix4f getMatrix() -
getTranslation
public org.joml.Vector3f getTranslation() -
getLeftRotation
public org.joml.Quaternionf getLeftRotation() -
getScale
public org.joml.Vector3f getScale() -
getRightRotation
public org.joml.Quaternionf getRightRotation() -
equals
-
hashCode
public int hashCode() -
getNormalMatrix
public org.joml.Matrix3f getNormalMatrix() -
checkNormalTransform
private void checkNormalTransform() -
slerp
-