Class OpenMatrix4f
java.lang.Object
ltd.icecold.orangeengine.api.math.OpenMatrix4f
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenMatrix4f
add(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest)
static OpenMatrix4f
createRotatorDeg(float angle, Vec3f axis)
static OpenMatrix4f
createScale(float x, float y, float z)
static OpenMatrix4f
createTranslation(float x, float y, float z)
float
invert()
static OpenMatrix4f
invert(OpenMatrix4f src, OpenMatrix4f dest)
load(FloatBuffer buf)
load(OpenMatrix4f src)
static OpenMatrix4f
load(OpenMatrix4f mat, FloatBuffer buf)
static OpenMatrix4f
load(OpenMatrix4f src, OpenMatrix4f dest)
static OpenMatrix4f
mul(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest)
static OpenMatrix4f
mulAsOrigin(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest)
static OpenMatrix4f
mulAsOriginFront(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest)
mulBack(OpenMatrix4f mulTransform)
mulFront(OpenMatrix4f mulTransform)
static OpenMatrix4f
overwriteRotation(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest)
static OpenMatrix4f
rotate(float angle, Vec3f axis, OpenMatrix4f dest)
static OpenMatrix4f
rotate(float angle, Vec3f axis, OpenMatrix4f src, OpenMatrix4f dest)
scale(float x, float y, float z)
static OpenMatrix4f
scale(Vec3f vec, OpenMatrix4f src, OpenMatrix4f dest)
static OpenMatrix4f
Set the given matrix to be the identity matrix.store(FloatBuffer buf)
toString()
static Vec3f
toVector(OpenMatrix4f matrix)
static Vec3f
transform(OpenMatrix4f matrix, Vec3f src)
static Vec4f
transform(OpenMatrix4f matrix, Vec4f src, Vec4f dest)
static Vec3f
transform3v(OpenMatrix4f matrix, Vec3f src, Vec3f dest)
translate(float x, float y, float z)
translate(Vec3f vec, OpenMatrix4f dest)
static OpenMatrix4f
translate(Vec3f vec, OpenMatrix4f src, OpenMatrix4f dest)
transpose(OpenMatrix4f dest)
static OpenMatrix4f
transpose(OpenMatrix4f src, OpenMatrix4f dest)
-
Field Details
-
m00
public float m00 -
m01
public float m01 -
m02
public float m02 -
m03
public float m03 -
m10
public float m10 -
m11
public float m11 -
m12
public float m12 -
m13
public float m13 -
m20
public float m20 -
m21
public float m21 -
m22
public float m22 -
m23
public float m23 -
m30
public float m30 -
m31
public float m31 -
m32
public float m32 -
m33
public float m33
-
-
Constructor Details
-
OpenMatrix4f
public OpenMatrix4f() -
OpenMatrix4f
-
-
Method Details
-
setIdentity
-
setIdentity
Set the given matrix to be the identity matrix.- Parameters:
m
- The matrix to set to the identity- Returns:
- m
-
load
-
load
-
load
-
load
-
store
-
add
-
mulFront
-
mulBack
-
mul
-
mulAsOrigin
-
mulAsOriginFront
public static OpenMatrix4f mulAsOriginFront(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest) -
overwriteRotation
public static OpenMatrix4f overwriteRotation(OpenMatrix4f left, OpenMatrix4f right, OpenMatrix4f dest) -
transform
-
transform
-
transform3v
-
transpose
-
transpose
-
transpose
-
determinant
public float determinant() -
invert
-
invert
-
translate
-
translate
-
translate
-
translate
-
createTranslation
-
createScale
-
rotateDeg
-
rotate
-
rotate
-
createRotatorDeg
-
rotate
-
toTranslationVector
-
toVector
-
scale
-
scale
-
scale
-
toScaleVector
-
removeTranslation
-
removeTranslation
-
toString
-