Interface TransformationExtensions
public interface TransformationExtensions
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.mojang.math.TransformationapplyOrigin(com.mojang.math.Vector3f origin) Apply this transformation to a different origin.default com.mojang.math.Transformationconvert transformation from assuming center-block system to opposing-corner-block systemdefault com.mojang.math.Transformationconvert transformation from assuming opposing-corner-block system to center-block systemdefault com.mojang.math.Matrix3fdefault booleandefault voidpush(com.mojang.blaze3d.vertex.PoseStack stack) default net.minecraft.core.DirectionrotateTransform(net.minecraft.core.Direction facing) default voidtransformNormal(com.mojang.math.Vector3f normal) default voidtransformPosition(com.mojang.math.Vector4f position)
-
Method Details
-
applyOrigin
default com.mojang.math.Transformation applyOrigin(com.mojang.math.Vector3f origin) Apply this transformation to a different origin. Can be used for switching between coordinate systems. Parameter is relative to the current origin. -
getNormalMatrix
default com.mojang.math.Matrix3f getNormalMatrix() -
push
default void push(com.mojang.blaze3d.vertex.PoseStack stack) -
transformPosition
default void transformPosition(com.mojang.math.Vector4f position) -
rotateTransform
default net.minecraft.core.Direction rotateTransform(net.minecraft.core.Direction facing) -
isIdentity
default boolean isIdentity() -
transformNormal
default void transformNormal(com.mojang.math.Vector3f normal) -
blockCenterToCorner
default com.mojang.math.Transformation blockCenterToCorner()convert transformation from assuming center-block system to opposing-corner-block system -
blockCornerToCenter
default com.mojang.math.Transformation blockCornerToCenter()convert transformation from assuming opposing-corner-block system to center-block system
-