Package net.minecraft.util.math
Class Matrix4f
java.lang.Object
net.minecraft.util.math.Matrix4f
public final class Matrix4f extends Object
-
Field Summary
Fields Modifier and Type Field Description protected float
a00
protected float
a01
protected float
a02
protected float
a03
protected float
a10
protected float
a11
protected float
a12
protected float
a13
protected float
a20
protected float
a21
protected float
a22
protected float
a23
protected float
a30
protected float
a31
protected float
a32
protected float
a33
-
Constructor Summary
Constructors Constructor Description Matrix4f()
Matrix4f(Matrix4f source)
Matrix4f(Quaternion quaternion)
-
Method Summary
Modifier and Type Method Description void
addToLastColumn(Vector3f vector)
Matrix4f
copy()
float
determinantAndAdjugate()
boolean
equals(Object o)
int
hashCode()
boolean
invert()
void
loadIdentity()
void
multiply(float scalar)
void
multiply(Matrix4f matrix)
void
multiply(Quaternion quaternion)
private static int
pack(int x, int y)
static Matrix4f
projectionMatrix(float width, float height, float nearPlane, float farPlane)
static Matrix4f
scale(float x, float y, float z)
String
toString()
static Matrix4f
translate(float x, float y, float z)
void
transpose()
static Matrix4f
viewboxMatrix(double fov, float aspectRatio, float cameraDepth, float viewDistance)
void
writeToBuffer(FloatBuffer floatBuffer)
-
Field Details
-
a00
protected float a00 -
a01
protected float a01 -
a02
protected float a02 -
a03
protected float a03 -
a10
protected float a10 -
a11
protected float a11 -
a12
protected float a12 -
a13
protected float a13 -
a20
protected float a20 -
a21
protected float a21 -
a22
protected float a22 -
a23
protected float a23 -
a30
protected float a30 -
a31
protected float a31 -
a32
protected float a32 -
a33
protected float a33
-
-
Constructor Details
-
Matrix4f
public Matrix4f() -
Matrix4f
-
Matrix4f
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
pack
@Environment(CLIENT) private static int pack(int x, int y) -
toString
-
writeToBuffer
-
loadIdentity
@Environment(CLIENT) public void loadIdentity() -
determinantAndAdjugate
@Environment(CLIENT) public float determinantAndAdjugate() -
transpose
@Environment(CLIENT) public void transpose() -
invert
@Environment(CLIENT) public boolean invert() -
multiply
-
multiply
-
multiply
@Environment(CLIENT) public void multiply(float scalar) -
viewboxMatrix
@Environment(CLIENT) public static Matrix4f viewboxMatrix(double fov, float aspectRatio, float cameraDepth, float viewDistance) -
projectionMatrix
@Environment(CLIENT) public static Matrix4f projectionMatrix(float width, float height, float nearPlane, float farPlane) -
addToLastColumn
-
copy
-
scale
-
translate
-