Class Matrix3f

java.lang.Object
net.minecraft.util.math.Matrix3f

public final class Matrix3f extends Object
Mappings:
Namespace Name
official c
intermediary net/minecraft/class_4581
named net/minecraft/util/math/Matrix3f
  • Field Details

    • ORDER

      private static final int ORDER
      The number of rows and columns (3) this matrix has.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lc;j:I
      intermediary field_31077 Lnet/minecraft/class_4581;field_31077:I
      named ORDER Lnet/minecraft/util/math/Matrix3f;ORDER:I
    • THREE_PLUS_TWO_SQRT_TWO

      private static final float THREE_PLUS_TWO_SQRT_TWO
      Mappings:
      Namespace Name Mixin selector
      official k Lc;k:F
      intermediary field_20860 Lnet/minecraft/class_4581;field_20860:F
      named THREE_PLUS_TWO_SQRT_TWO Lnet/minecraft/util/math/Matrix3f;THREE_PLUS_TWO_SQRT_TWO:F
    • COS_PI_OVER_EIGHT

      private static final float COS_PI_OVER_EIGHT
      Mappings:
      Namespace Name Mixin selector
      official l Lc;l:F
      intermediary field_20861 Lnet/minecraft/class_4581;field_20861:F
      named COS_PI_OVER_EIGHT Lnet/minecraft/util/math/Matrix3f;COS_PI_OVER_EIGHT:F
    • SIN_PI_OVER_EIGHT

      private static final float SIN_PI_OVER_EIGHT
      Mappings:
      Namespace Name Mixin selector
      official m Lc;m:F
      intermediary field_20862 Lnet/minecraft/class_4581;field_20862:F
      named SIN_PI_OVER_EIGHT Lnet/minecraft/util/math/Matrix3f;SIN_PI_OVER_EIGHT:F
    • SQRT_HALF

      private static final float SQRT_HALF
      Mappings:
      Namespace Name Mixin selector
      official n Lc;n:F
      intermediary field_20863 Lnet/minecraft/class_4581;field_20863:F
      named SQRT_HALF Lnet/minecraft/util/math/Matrix3f;SQRT_HALF:F
    • a00

      protected float a00
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a:F
      intermediary field_21633 Lnet/minecraft/class_4581;field_21633:F
      named a00 Lnet/minecraft/util/math/Matrix3f;a00:F
    • a01

      protected float a01
      Mappings:
      Namespace Name Mixin selector
      official b Lc;b:F
      intermediary field_21634 Lnet/minecraft/class_4581;field_21634:F
      named a01 Lnet/minecraft/util/math/Matrix3f;a01:F
    • a02

      protected float a02
      Mappings:
      Namespace Name Mixin selector
      official c Lc;c:F
      intermediary field_21635 Lnet/minecraft/class_4581;field_21635:F
      named a02 Lnet/minecraft/util/math/Matrix3f;a02:F
    • a10

      protected float a10
      Mappings:
      Namespace Name Mixin selector
      official d Lc;d:F
      intermediary field_21636 Lnet/minecraft/class_4581;field_21636:F
      named a10 Lnet/minecraft/util/math/Matrix3f;a10:F
    • a11

      protected float a11
      Mappings:
      Namespace Name Mixin selector
      official e Lc;e:F
      intermediary field_21637 Lnet/minecraft/class_4581;field_21637:F
      named a11 Lnet/minecraft/util/math/Matrix3f;a11:F
    • a12

      protected float a12
      Mappings:
      Namespace Name Mixin selector
      official f Lc;f:F
      intermediary field_21638 Lnet/minecraft/class_4581;field_21638:F
      named a12 Lnet/minecraft/util/math/Matrix3f;a12:F
    • a20

      protected float a20
      Mappings:
      Namespace Name Mixin selector
      official g Lc;g:F
      intermediary field_21639 Lnet/minecraft/class_4581;field_21639:F
      named a20 Lnet/minecraft/util/math/Matrix3f;a20:F
    • a21

      protected float a21
      Mappings:
      Namespace Name Mixin selector
      official h Lc;h:F
      intermediary field_21640 Lnet/minecraft/class_4581;field_21640:F
      named a21 Lnet/minecraft/util/math/Matrix3f;a21:F
    • a22

      protected float a22
      Mappings:
      Namespace Name Mixin selector
      official i Lc;i:F
      intermediary field_21641 Lnet/minecraft/class_4581;field_21641:F
      named a22 Lnet/minecraft/util/math/Matrix3f;a22:F
  • Constructor Details

    • Matrix3f

      public Matrix3f()
    • Matrix3f

      public Matrix3f(Quaternion quaternion)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lc;<init>(Lg;)V
      intermediary <init> Lnet/minecraft/class_4581;<init>(Lnet/minecraft/class_1158;)V
      named <init> Lnet/minecraft/util/math/Matrix3f;<init>(Lnet/minecraft/util/math/Quaternion;)V
    • Matrix3f

      public Matrix3f(Matrix4f matrix)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lc;<init>(Ld;)V
      intermediary <init> Lnet/minecraft/class_4581;<init>(Lnet/minecraft/class_1159;)V
      named <init> Lnet/minecraft/util/math/Matrix3f;<init>(Lnet/minecraft/util/math/Matrix4f;)V
    • Matrix3f

      public Matrix3f(Matrix3f source)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lc;<init>(Lc;)V
      intermediary <init> Lnet/minecraft/class_4581;<init>(Lnet/minecraft/class_4581;)V
      named <init> Lnet/minecraft/util/math/Matrix3f;<init>(Lnet/minecraft/util/math/Matrix3f;)V
  • Method Details

    • scale

      public static Matrix3f scale(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(FFF)Lc;
      intermediary method_23963 Lnet/minecraft/class_4581;method_23963(FFF)Lnet/minecraft/class_4581;
      named scale Lnet/minecraft/util/math/Matrix3f;scale(FFF)Lnet/minecraft/util/math/Matrix3f;
    • getSinAndCosOfRotation

      private static com.mojang.datafixers.util.Pair<Float,Float> getSinAndCosOfRotation(float upperLeft, float diagonalAverage, float lowerRight)
      Mappings:
      Namespace Name Mixin selector
      official b Lc;b(FFF)Lcom/mojang/datafixers/util/Pair;
      intermediary method_22849 Lnet/minecraft/class_4581;method_22849(FFF)Lcom/mojang/datafixers/util/Pair;
      named getSinAndCosOfRotation Lnet/minecraft/util/math/Matrix3f;getSinAndCosOfRotation(FFF)Lcom/mojang/datafixers/util/Pair;
    • method_22848

      private static com.mojang.datafixers.util.Pair<Float,Float> method_22848(float float2, float float3)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(FF)Lcom/mojang/datafixers/util/Pair;
      intermediary method_22848 Lnet/minecraft/class_4581;method_22848(FF)Lcom/mojang/datafixers/util/Pair;
      named method_22848 Lnet/minecraft/util/math/Matrix3f;method_22848(FF)Lcom/mojang/datafixers/util/Pair;
    • method_22857

      private static Quaternion method_22857(Matrix3f matrix)
      Mappings:
      Namespace Name Mixin selector
      official e Lc;e(Lc;)Lg;
      intermediary method_22857 Lnet/minecraft/class_4581;method_22857(Lnet/minecraft/class_4581;)Lnet/minecraft/class_1158;
      named method_22857 Lnet/minecraft/util/math/Matrix3f;method_22857(Lnet/minecraft/util/math/Matrix3f;)Lnet/minecraft/util/math/Quaternion;
    • method_35260

      private static void method_35260(Matrix3f matrix, Quaternion quaternion)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(Lc;Lg;)V
      intermediary method_35260 Lnet/minecraft/class_4581;method_35260(Lnet/minecraft/class_4581;Lnet/minecraft/class_1158;)V
      named method_35260 Lnet/minecraft/util/math/Matrix3f;method_35260(Lnet/minecraft/util/math/Matrix3f;Lnet/minecraft/util/math/Quaternion;)V
    • transpose

      public void transpose()
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a()V
      intermediary method_22847 Lnet/minecraft/class_4581;method_22847()V
      named transpose Lnet/minecraft/util/math/Matrix3f;transpose()V
    • decomposeLinearTransformation

      public Triple<Quaternion,Vec3f,Quaternion> decomposeLinearTransformation()
      Mappings:
      Namespace Name Mixin selector
      official b Lc;b()Lorg/apache/commons/lang3/tuple/Triple;
      intermediary method_22853 Lnet/minecraft/class_4581;method_22853()Lorg/apache/commons/lang3/tuple/Triple;
      named decomposeLinearTransformation Lnet/minecraft/util/math/Matrix3f;decomposeLinearTransformation()Lorg/apache/commons/lang3/tuple/Triple;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lc;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_4581;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/Matrix3f;equals(Ljava/lang/Object;)Z
    • hashCode

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

      private static int pack(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(II)I
      intermediary method_35259 Lnet/minecraft/class_4581;method_35259(II)I
      named pack Lnet/minecraft/util/math/Matrix3f;pack(II)I
    • readColumnMajor

      public void readColumnMajor(FloatBuffer buf)
      Reads a matrix from the buffer in column-major order.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(Ljava/nio/FloatBuffer;)V
      intermediary method_35261 Lnet/minecraft/class_4581;method_35261(Ljava/nio/FloatBuffer;)V
      named readColumnMajor Lnet/minecraft/util/math/Matrix3f;readColumnMajor(Ljava/nio/FloatBuffer;)V
    • readRowMajor

      public void readRowMajor(FloatBuffer buf)
      Reads a matrix from the buffer in row-major order.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lc;b(Ljava/nio/FloatBuffer;)V
      intermediary method_35263 Lnet/minecraft/class_4581;method_35263(Ljava/nio/FloatBuffer;)V
      named readRowMajor Lnet/minecraft/util/math/Matrix3f;readRowMajor(Ljava/nio/FloatBuffer;)V
    • read

      public void read(FloatBuffer buf, boolean rowMajor)
      Reads a matrix from the buffer.
      Parameters:
      rowMajor - true to read in row-major order; false to read in column-major order
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(Ljava/nio/FloatBuffer;Z)V
      intermediary method_35262 Lnet/minecraft/class_4581;method_35262(Ljava/nio/FloatBuffer;Z)V
      named read Lnet/minecraft/util/math/Matrix3f;read(Ljava/nio/FloatBuffer;Z)V
    • load

      public void load(Matrix3f source)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(Lc;)V
      intermediary method_22852 Lnet/minecraft/class_4581;method_22852(Lnet/minecraft/class_4581;)V
      named load Lnet/minecraft/util/math/Matrix3f;load(Lnet/minecraft/util/math/Matrix3f;)V
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • writeColumnMajor

      public void writeColumnMajor(FloatBuffer buf)
      Writes this matrix to the buffer in column-major order.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lc;c(Ljava/nio/FloatBuffer;)V
      intermediary method_35266 Lnet/minecraft/class_4581;method_35266(Ljava/nio/FloatBuffer;)V
      named writeColumnMajor Lnet/minecraft/util/math/Matrix3f;writeColumnMajor(Ljava/nio/FloatBuffer;)V
    • writeRowMajor

      public void writeRowMajor(FloatBuffer buf)
      Writes this matrix to the buffer in row-major order.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lc;d(Ljava/nio/FloatBuffer;)V
      intermediary method_35268 Lnet/minecraft/class_4581;method_35268(Ljava/nio/FloatBuffer;)V
      named writeRowMajor Lnet/minecraft/util/math/Matrix3f;writeRowMajor(Ljava/nio/FloatBuffer;)V
    • write

      public void write(FloatBuffer buf, boolean rowMajor)
      Writes this matrix to the buffer.
      Parameters:
      rowMajor - true to write in row-major order; false to write in column-major order
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lc;b(Ljava/nio/FloatBuffer;Z)V
      intermediary method_35264 Lnet/minecraft/class_4581;method_35264(Ljava/nio/FloatBuffer;Z)V
      named write Lnet/minecraft/util/math/Matrix3f;write(Ljava/nio/FloatBuffer;Z)V
    • loadIdentity

      public void loadIdentity()
      Mappings:
      Namespace Name Mixin selector
      official c Lc;c()V
      intermediary method_22856 Lnet/minecraft/class_4581;method_22856()V
      named loadIdentity Lnet/minecraft/util/math/Matrix3f;loadIdentity()V
    • determinantAndAdjugate

      public float determinantAndAdjugate()
      Mappings:
      Namespace Name Mixin selector
      official d Lc;d()F
      intermediary method_23731 Lnet/minecraft/class_4581;method_23731()F
      named determinantAndAdjugate Lnet/minecraft/util/math/Matrix3f;determinantAndAdjugate()F
    • determinant

      public float determinant()
      Mappings:
      Namespace Name Mixin selector
      official e Lc;e()F
      intermediary method_35269 Lnet/minecraft/class_4581;method_35269()F
      named determinant Lnet/minecraft/util/math/Matrix3f;determinant()F
    • invert

      public boolean invert()
      Mappings:
      Namespace Name Mixin selector
      official f Lc;f()Z
      intermediary method_23732 Lnet/minecraft/class_4581;method_23732()Z
      named invert Lnet/minecraft/util/math/Matrix3f;invert()Z
    • set

      public void set(int x, int y, float value)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(IIF)V
      intermediary method_26288 Lnet/minecraft/class_4581;method_26288(IIF)V
      named set Lnet/minecraft/util/math/Matrix3f;set(IIF)V
    • multiply

      public void multiply(Matrix3f other)
      Mappings:
      Namespace Name Mixin selector
      official b Lc;b(Lc;)V
      intermediary method_22855 Lnet/minecraft/class_4581;method_22855(Lnet/minecraft/class_4581;)V
      named multiply Lnet/minecraft/util/math/Matrix3f;multiply(Lnet/minecraft/util/math/Matrix3f;)V
    • multiply

      public void multiply(Quaternion quaternion)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(Lg;)V
      intermediary method_23274 Lnet/minecraft/class_4581;method_23274(Lnet/minecraft/class_1158;)V
      named multiply Lnet/minecraft/util/math/Matrix3f;multiply(Lnet/minecraft/util/math/Quaternion;)V
    • multiply

      public void multiply(float scalar)
      Mappings:
      Namespace Name Mixin selector
      official a Lc;a(F)V
      intermediary method_23729 Lnet/minecraft/class_4581;method_23729(F)V
      named multiply Lnet/minecraft/util/math/Matrix3f;multiply(F)V
    • add

      public void add(Matrix3f matrix)
      Mappings:
      Namespace Name Mixin selector
      official c Lc;c(Lc;)V
      intermediary method_35265 Lnet/minecraft/class_4581;method_35265(Lnet/minecraft/class_4581;)V
      named add Lnet/minecraft/util/math/Matrix3f;add(Lnet/minecraft/util/math/Matrix3f;)V
    • subtract

      public void subtract(Matrix3f matrix)
      Mappings:
      Namespace Name Mixin selector
      official d Lc;d(Lc;)V
      intermediary method_35267 Lnet/minecraft/class_4581;method_35267(Lnet/minecraft/class_4581;)V
      named subtract Lnet/minecraft/util/math/Matrix3f;subtract(Lnet/minecraft/util/math/Matrix3f;)V
    • trace

      public float trace()
      Returns the sum of the elements on the main diagonal.
      Mappings:
      Namespace Name Mixin selector
      official g Lc;g()F
      intermediary method_35270 Lnet/minecraft/class_4581;method_35270()F
      named trace Lnet/minecraft/util/math/Matrix3f;trace()F
    • copy

      public Matrix3f copy()
      Mappings:
      Namespace Name Mixin selector
      official h Lc;h()Lc;
      intermediary method_23296 Lnet/minecraft/class_4581;method_23296()Lnet/minecraft/class_4581;
      named copy Lnet/minecraft/util/math/Matrix3f;copy()Lnet/minecraft/util/math/Matrix3f;