Class Transformation

java.lang.Object
com.mojang.math.Transformation
All Implemented Interfaces:
IForgeTransformation

public final class Transformation extends Object implements IForgeTransformation
  • Field Details

    • matrix

      private final org.joml.Matrix4f matrix
    • CODEC

      public static final com.mojang.serialization.Codec<Transformation> CODEC
    • EXTENDED_CODEC

      public static final com.mojang.serialization.Codec<Transformation> 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

      private static final Transformation IDENTITY
    • normalTransform

      private org.joml.Matrix3f normalTransform
  • Constructor Details

    • 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_)
  • Method Details

    • identity

      public static Transformation identity()
    • compose

      public Transformation compose(Transformation p_121097_)
    • inverse

      @Nullable public Transformation inverse()
    • ensureDecomposed

      private void ensureDecomposed()
    • compose

      private static org.joml.Matrix4f compose(@Nullable org.joml.Vector3f p_254465_, @Nullable org.joml.Quaternionf p_254416_, @Nullable org.joml.Vector3f p_254499_, @Nullable org.joml.Quaternionf p_254334_)
    • 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

      public boolean equals(Object p_121108_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • slerp

      public Transformation slerp(Transformation p_175938_, float p_175939_)
    • getNormalMatrix

      public org.joml.Matrix3f getNormalMatrix()
    • checkNormalTransform

      private void checkNormalTransform()