Package net.minecraft.util.math.vector
Class Matrix4f
- java.lang.Object
-
- net.minecraft.util.math.vector.Matrix4f
-
public final class Matrix4f extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected float
m00
protected float
m01
protected float
m02
protected float
m03
protected float
m10
protected float
m11
protected float
m12
protected float
m13
protected float
m20
protected float
m21
protected float
m22
protected float
m23
protected float
m30
protected float
m31
protected float
m32
protected float
m33
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Matrix4f other)
float
adjugateAndDet()
private static int
bufferIndex(int p_226594_0_, int p_226594_1_)
Matrix4f
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
equals(java.lang.Object p_equals_1_)
int
hashCode()
boolean
invert()
void
multiply(float p_226592_1_)
void
multiply(Matrix4f p_226595_1_)
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
set(Matrix4f mat)
void
setIdentity()
void
setTranslation(float x, float y, float z)
void
store(java.nio.FloatBuffer p_195879_1_)
java.lang.String
toString()
void
translate(Vector3f p_226597_1_)
void
transpose()
-
-
-
Field Detail
-
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 Detail
-
Matrix4f
public Matrix4f()
-
Matrix4f
public Matrix4f(Matrix4f p_i48105_1_)
-
Matrix4f
public Matrix4f(Quaternion p_i48104_1_)
-
Matrix4f
public Matrix4f(float[] values)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
bufferIndex
private static int bufferIndex(int p_226594_0_, int p_226594_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
store
public void store(java.nio.FloatBuffer p_195879_1_)
-
setIdentity
public void setIdentity()
-
adjugateAndDet
public float adjugateAndDet()
-
transpose
public void transpose()
-
invert
public boolean invert()
-
multiply
public void multiply(Matrix4f p_226595_1_)
-
multiply
public void multiply(Quaternion p_226596_1_)
-
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
public void translate(Vector3f p_226597_1_)
-
copy
public Matrix4f copy()
-
createScaleMatrix
public static Matrix4f createScaleMatrix(float p_226593_0_, float p_226593_1_, float p_226593_2_)
-
createTranslateMatrix
public static Matrix4f createTranslateMatrix(float p_226599_0_, float p_226599_1_, float p_226599_2_)
-
set
public void set(Matrix4f mat)
-
add
public void add(Matrix4f other)
-
multiplyBackward
public void multiplyBackward(Matrix4f other)
-
setTranslation
public void setTranslation(float x, float y, float z)
-
-