Class Transformation

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

public final class Transformation extends Object implements ITransformationExtension
  • Field Details

    • matrix

      private final 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 Vector3f translation
    • leftRotation

      @Nullable private Quaternionf leftRotation
    • scale

      @Nullable private Vector3f scale
    • rightRotation

      @Nullable private Quaternionf rightRotation
    • IDENTITY

      private static final Transformation IDENTITY
    • normalTransform

      private Matrix3f normalTransform
  • Constructor Details

    • Transformation

      public Transformation(@Nullable Matrix4f pMatrix)
    • Transformation

      public Transformation(@Nullable Vector3f pTranslation, @Nullable Quaternionf pLeftRotation, @Nullable Vector3f pScale, @Nullable Quaternionf pRightRotation)
  • Method Details