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 floata00protected floata01protected floata02protected floata03protected floata10protected floata11protected floata12protected floata13protected floata20protected floata21protected floata22protected floata23protected floata30protected floata31protected floata32protected floata33 -
Constructor Summary
Constructors Constructor Description Matrix4f()Matrix4f(Matrix4f source)Matrix4f(Quaternion quaternion) -
Method Summary
Modifier and Type Method Description voidaddToLastColumn(Vec3f vector)Matrix4fcopy()floatdeterminantAndAdjugate()booleanequals(Object o)inthashCode()booleaninvert()voidloadIdentity()voidmultiply(float scalar)voidmultiply(Matrix4f matrix)voidmultiply(Quaternion quaternion)voidmultiplyByTranslation(float x, float y, float z)Multiplies the matrix by the translation matrix consisting ofx,yandz.private static intpack(int x, int y)static Matrix4fprojectionMatrix(float width, float height, float nearPlane, float farPlane)static Matrix4fscale(float x, float y, float z)StringtoString()static Matrix4ftranslate(float x, float y, float z)voidtranspose()static Matrix4fviewboxMatrix(double fov, float aspectRatio, float cameraDepth, float viewDistance)voidwriteToBuffer(FloatBuffer buffer)
-
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
-
multiplyByTranslation
@Environment(CLIENT) public void multiplyByTranslation(float x, float y, float z)Multiplies the matrix by the translation matrix consisting ofx,yandz.multiplyByTranslation(x, y, z)is equivalent tomultiply(Matrix4f.translate(x, y, z)). -
scale
-
translate
-