Package net.minecraft.util.math.vector
Class Matrix4f
java.lang.Object
net.minecraft.util.math.vector.Matrix4f
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
float
private static int
bufferIndex
(int p_226594_0_, int p_226594_1_) copy()
static Matrix4f
createScaleMatrix
(float p_226593_0_, float p_226593_1_, float p_226593_2_) static Matrix4f
createTranslateMatrix
(float p_226599_0_, float p_226599_1_, float p_226599_2_) boolean
int
hashCode()
boolean
invert()
void
multiply
(float p_226592_1_) void
void
multiply
(Quaternion p_226596_1_) void
multiplyBackward
(Matrix4f other) static Matrix4f
orthographic
(float p_195877_0_, float p_195877_1_, float p_195877_2_, float p_195877_3_) static Matrix4f
perspective
(double p_195876_0_, float p_195876_2_, float p_195876_3_, float p_195876_4_) void
void
void
setTranslation
(float x, float y, float z) void
store
(FloatBuffer p_195879_1_) toString()
void
void
-
Field Details
-
m00
protected float m00 -
m01
protected float m01 -
m02
protected float m02 -
m03
protected float m03 -
m10
protected float m10 -
m11
protected float m11 -
m12
protected float m12 -
m13
protected float m13 -
m20
protected float m20 -
m21
protected float m21 -
m22
protected float m22 -
m23
protected float m23 -
m30
protected float m30 -
m31
protected float m31 -
m32
protected float m32 -
m33
protected float m33
-
-
Constructor Details
-
Matrix4f
public Matrix4f() -
Matrix4f
-
Matrix4f
-
Matrix4f
public Matrix4f(float[] values)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
bufferIndex
private static int bufferIndex(int p_226594_0_, int p_226594_1_) -
toString
-
store
-
setIdentity
public void setIdentity() -
adjugateAndDet
public float adjugateAndDet() -
transpose
public void transpose() -
invert
public boolean invert() -
multiply
-
multiply
-
multiply
public void multiply(float p_226592_1_) -
perspective
public static Matrix4f perspective(double p_195876_0_, float p_195876_2_, float p_195876_3_, float p_195876_4_) -
orthographic
public static Matrix4f orthographic(float p_195877_0_, float p_195877_1_, float p_195877_2_, float p_195877_3_) -
translate
-
copy
-
createScaleMatrix
-
createTranslateMatrix
public static Matrix4f createTranslateMatrix(float p_226599_0_, float p_226599_1_, float p_226599_2_) -
set
-
add
-
multiplyBackward
-
setTranslation
public void setTranslation(float x, float y, float z)
-