Package com.mojang.math
Class Matrix4f
java.lang.Object
com.mojang.math.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
private static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
float
private static int
bufferIndex(int p_27642_, int p_27643_)
copy()
static Matrix4f
createScaleMatrix(float p_27633_, float p_27634_, float p_27635_)
static Matrix4f
createTranslateMatrix(float p_27654_, float p_27655_, float p_27656_)
float
boolean
int
hashCode()
boolean
invert()
boolean
private static boolean
isInteger(float p_162218_)
void
void
load(FloatBuffer p_162213_)
void
load(FloatBuffer p_162215_, boolean p_162216_)
void
loadTransposed(FloatBuffer p_162220_)
void
multiply(float p_27631_)
void
void
multiply(Quaternion p_27647_)
void
multiplyBackward(Matrix4f other)
void
multiplyWithTranslation(float p_162200_, float p_162201_, float p_162202_)
static Matrix4f
orthographic(float p_27637_, float p_27638_, float p_27639_, float p_27640_)
static Matrix4f
orthographic(float p_162204_, float p_162205_, float p_162206_, float p_162207_, float p_162208_, float p_162209_)
static Matrix4f
perspective(double p_27626_, float p_27627_, float p_27628_, float p_27629_)
void
void
setTranslation(float x, float y, float z)
void
store(FloatBuffer p_27651_)
void
store(FloatBuffer p_162222_, boolean p_162223_)
void
storeTransposed(FloatBuffer p_162230_)
void
toString()
float
trace()
void
void
-
Field Details
-
ORDER
private static final int ORDER- See Also:
- Constant Field Values
-
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
-
isInteger
public boolean isInteger() -
isInteger
private static boolean isInteger(float p_162218_) -
equals
-
hashCode
public int hashCode() -
bufferIndex
private static int bufferIndex(int p_27642_, int p_27643_) -
load
-
loadTransposed
-
load
-
load
-
toString
-
store
-
storeTransposed
-
store
-
setIdentity
public void setIdentity() -
adjugateAndDet
public float adjugateAndDet() -
determinant
public float determinant() -
transpose
public void transpose() -
invert
public boolean invert() -
multiply
-
multiply
-
multiply
public void multiply(float p_27631_) -
add
-
subtract
-
trace
public float trace() -
perspective
public static Matrix4f perspective(double p_27626_, float p_27627_, float p_27628_, float p_27629_) -
orthographic
public static Matrix4f orthographic(float p_27637_, float p_27638_, float p_27639_, float p_27640_) -
orthographic
public static Matrix4f orthographic(float p_162204_, float p_162205_, float p_162206_, float p_162207_, float p_162208_, float p_162209_) -
translate
-
copy
-
multiplyWithTranslation
public void multiplyWithTranslation(float p_162200_, float p_162201_, float p_162202_) -
createScaleMatrix
-
createTranslateMatrix
-
multiplyBackward
-
setTranslation
public void setTranslation(float x, float y, float z)
-