Package org.joml
Class Matrix4d
java.lang.Object
org.joml.Matrix4d
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Matrix4dc
- Direct Known Subclasses:
MatrixStackd
public class Matrix4d extends java.lang.Object implements java.io.Externalizable, Matrix4dc
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface org.joml.Matrix4dc
CORNER_NXNYNZ, CORNER_NXNYPZ, CORNER_NXPYNZ, CORNER_NXPYPZ, CORNER_PXNYNZ, CORNER_PXNYPZ, CORNER_PXPYNZ, CORNER_PXPYPZ, PLANE_NX, PLANE_NY, PLANE_NZ, PLANE_PX, PLANE_PY, PLANE_PZ, PROPERTY_AFFINE, PROPERTY_IDENTITY, PROPERTY_PERSPECTIVE, PROPERTY_TRANSLATION
-
Constructor Summary
Constructors Constructor Description Matrix4d()
Matrix4d(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
Matrix4d(java.nio.DoubleBuffer buffer)
Matrix4d(Matrix3dc mat)
Matrix4d(Matrix4dc mat)
Matrix4d(Matrix4fc mat)
Matrix4d(Matrix4x3dc mat)
Matrix4d(Matrix4x3fc mat)
Matrix4d(Vector4d col0, Vector4d col1, Vector4d col2, Vector4d col3)
-
Method Summary
Modifier and Type Method Description Matrix4d
add(Matrix4dc other)
Matrix4d
add(Matrix4dc other, Matrix4d dest)
Matrix4d
add4x3(Matrix4dc other)
Matrix4d
add4x3(Matrix4dc other, Matrix4d dest)
Matrix4d
add4x3(Matrix4fc other)
Matrix4d
add4x3(Matrix4fc other, Matrix4d dest)
Matrix4d
arcball(double radius, double centerX, double centerY, double centerZ, double angleX, double angleY)
Matrix4d
arcball(double radius, double centerX, double centerY, double centerZ, double angleX, double angleY, Matrix4d dest)
Matrix4d
arcball(double radius, Vector3dc center, double angleX, double angleY)
Matrix4d
arcball(double radius, Vector3dc center, double angleX, double angleY, Matrix4d dest)
Matrix4d
assumeAffine()
Matrix4d
assumeNothing()
Matrix4d
assumePerspective()
Matrix4d
billboardCylindrical(Vector3dc objPos, Vector3dc targetPos, Vector3dc up)
Matrix4d
billboardSpherical(Vector3dc objPos, Vector3dc targetPos)
Matrix4d
billboardSpherical(Vector3dc objPos, Vector3dc targetPos, Vector3dc up)
double
determinant()
double
determinant3x3()
double
determinantAffine()
boolean
equals(java.lang.Object obj)
Matrix4d
fma4x3(Matrix4dc other, double otherFactor)
Matrix4d
fma4x3(Matrix4dc other, double otherFactor, Matrix4d dest)
Matrix4d
frustum(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
frustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
frustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
frustum(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)
Matrix4d
frustumAabb(Vector3d min, Vector3d max)
Vector3d
frustumCorner(int corner, Vector3d point)
Matrix4d
frustumLH(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
frustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
frustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
frustumLH(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)
Vector4d
frustumPlane(int plane, Vector4d planeEquation)
Vector3d
frustumRayDir(double x, double y, Vector3d dir)
double[]
get(double[] arr)
double[]
get(double[] arr, int offset)
float[]
get(float[] arr)
float[]
get(float[] arr, int offset)
java.nio.ByteBuffer
get(int index, java.nio.ByteBuffer buffer)
java.nio.DoubleBuffer
get(int index, java.nio.DoubleBuffer buffer)
java.nio.FloatBuffer
get(int index, java.nio.FloatBuffer buffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer buffer)
java.nio.DoubleBuffer
get(java.nio.DoubleBuffer buffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer buffer)
Matrix4d
get(Matrix4d dest)
Matrix3d
get3x3(Matrix3d dest)
Matrix4x3d
get4x3(Matrix4x3d dest)
java.nio.ByteBuffer
get4x3Transposed(int index, java.nio.ByteBuffer buffer)
java.nio.DoubleBuffer
get4x3Transposed(int index, java.nio.DoubleBuffer buffer)
java.nio.ByteBuffer
get4x3Transposed(java.nio.ByteBuffer buffer)
java.nio.DoubleBuffer
get4x3Transposed(java.nio.DoubleBuffer buffer)
Vector4d
getColumn(int column, Vector4d dest)
Vector3d
getEulerAnglesZYX(Vector3d dest)
java.nio.ByteBuffer
getFloats(int index, java.nio.ByteBuffer buffer)
java.nio.ByteBuffer
getFloats(java.nio.ByteBuffer buffer)
Quaterniond
getNormalizedRotation(Quaterniond dest)
Quaternionf
getNormalizedRotation(Quaternionf dest)
Vector4d
getRow(int row, Vector4d dest)
Vector3d
getScale(Vector3d dest)
Vector3d
getTranslation(Vector3d dest)
java.nio.ByteBuffer
getTransposed(int index, java.nio.ByteBuffer buffer)
java.nio.DoubleBuffer
getTransposed(int index, java.nio.DoubleBuffer buffer)
java.nio.ByteBuffer
getTransposed(java.nio.ByteBuffer buffer)
java.nio.DoubleBuffer
getTransposed(java.nio.DoubleBuffer buffer)
Quaterniond
getUnnormalizedRotation(Quaterniond dest)
Quaternionf
getUnnormalizedRotation(Quaternionf dest)
int
hashCode()
Matrix4d
identity()
Matrix4d
invert()
Matrix4d
invert(Matrix4d dest)
Matrix4d
invertAffine()
Matrix4d
invertAffine(Matrix4d dest)
Matrix4d
invertAffineUnitScale()
Matrix4d
invertAffineUnitScale(Matrix4d dest)
Matrix4d
invertFrustum()
Matrix4d
invertFrustum(Matrix4d dest)
Matrix4d
invertLookAt()
Matrix4d
invertLookAt(Matrix4d dest)
Matrix4d
invertOrtho()
Matrix4d
invertOrtho(Matrix4d dest)
Matrix4d
invertPerspective()
Matrix4d
invertPerspective(Matrix4d dest)
Matrix4d
invertPerspectiveView(Matrix4dc view, Matrix4d dest)
boolean
isAffine()
Matrix4d
lerp(Matrix4dc other, double t)
Matrix4d
lerp(Matrix4dc other, double t, Matrix4d dest)
Matrix4d
lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
Matrix4d
lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix4d dest)
Matrix4d
lookAlong(Vector3dc dir, Vector3dc up)
Matrix4d
lookAlong(Vector3dc dir, Vector3dc up, Matrix4d dest)
Matrix4d
lookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
Matrix4d
lookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)
Matrix4d
lookAt(Vector3dc eye, Vector3dc center, Vector3dc up)
Matrix4d
lookAt(Vector3dc eye, Vector3dc center, Vector3dc up, Matrix4d dest)
Matrix4d
lookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
Matrix4d
lookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)
Matrix4d
lookAtLH(Vector3dc eye, Vector3dc center, Vector3dc up)
Matrix4d
lookAtLH(Vector3dc eye, Vector3dc center, Vector3dc up, Matrix4d dest)
Matrix4d
lookAtPerspective(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)
Matrix4d
lookAtPerspectiveLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)
double
m00()
Matrix4d
m00(double m00)
double
m01()
Matrix4d
m01(double m01)
double
m02()
Matrix4d
m02(double m02)
double
m03()
Matrix4d
m03(double m03)
double
m10()
Matrix4d
m10(double m10)
double
m11()
Matrix4d
m11(double m11)
double
m12()
Matrix4d
m12(double m12)
double
m13()
Matrix4d
m13(double m13)
double
m20()
Matrix4d
m20(double m20)
double
m21()
Matrix4d
m21(double m21)
double
m22()
Matrix4d
m22(double m22)
double
m23()
Matrix4d
m23(double m23)
double
m30()
Matrix4d
m30(double m30)
double
m31()
Matrix4d
m31(double m31)
double
m32()
Matrix4d
m32(double m32)
double
m33()
Matrix4d
m33(double m33)
Matrix4d
mul(Matrix4dc right)
Matrix4d
mul(Matrix4dc right, Matrix4d dest)
Matrix4d
mul(Matrix4f right)
Matrix4d
mul(Matrix4fc right, Matrix4d dest)
Matrix4d
mul(Matrix4x3dc right, Matrix4d dest)
Matrix4d
mul(Matrix4x3fc right, Matrix4d dest)
Matrix4d
mul4x3ComponentWise(Matrix4dc other)
Matrix4d
mul4x3ComponentWise(Matrix4dc other, Matrix4d dest)
Matrix4d
mulAffine(Matrix4dc right)
Matrix4d
mulAffine(Matrix4dc right, Matrix4d dest)
Matrix4d
mulAffineR(Matrix4dc right)
Matrix4d
mulAffineR(Matrix4dc right, Matrix4d dest)
Matrix4d
mulAffineR(Matrix4x3dc right)
Matrix4d
mulAffineR(Matrix4x3dc right, Matrix4d dest)
Matrix4d
mulAffineR(Matrix4x3fc right)
Matrix4d
mulAffineR(Matrix4x3fc right, Matrix4d dest)
Matrix4d
mulComponentWise(Matrix4dc other)
Matrix4d
mulComponentWise(Matrix4dc other, Matrix4d dest)
Matrix4d
mulOrthoAffine(Matrix4dc view)
Matrix4d
mulOrthoAffine(Matrix4dc view, Matrix4d dest)
Matrix4d
mulPerspectiveAffine(Matrix4dc view)
Matrix4d
mulPerspectiveAffine(Matrix4dc view, Matrix4d dest)
Matrix4d
mulTranslationAffine(Matrix4dc right, Matrix4d dest)
Matrix4d
normal()
Matrix3d
normal(Matrix3d dest)
Matrix4d
normal(Matrix4d dest)
Matrix4d
normalize3x3()
Matrix3d
normalize3x3(Matrix3d dest)
Matrix4d
normalize3x3(Matrix4d dest)
Vector3d
normalizedPositiveX(Vector3d dir)
Vector3d
normalizedPositiveY(Vector3d dir)
Vector3d
normalizedPositiveZ(Vector3d dir)
Vector3d
origin(Vector3d origin)
Vector3d
originAffine(Vector3d origin)
Matrix4d
ortho(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
ortho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
ortho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
ortho(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)
Matrix4d
ortho2D(double left, double right, double bottom, double top)
Matrix4d
ortho2D(double left, double right, double bottom, double top, Matrix4d dest)
Matrix4d
ortho2DLH(double left, double right, double bottom, double top)
Matrix4d
ortho2DLH(double left, double right, double bottom, double top, Matrix4d dest)
Matrix4d
orthoCrop(Matrix4dc view, Matrix4d dest)
Matrix4d
orthoLH(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
orthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
orthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
orthoLH(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)
Matrix4d
orthoSymmetric(double width, double height, double zNear, double zFar)
Matrix4d
orthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
orthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
orthoSymmetric(double width, double height, double zNear, double zFar, Matrix4d dest)
Matrix4d
orthoSymmetricLH(double width, double height, double zNear, double zFar)
Matrix4d
orthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
orthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
orthoSymmetricLH(double width, double height, double zNear, double zFar, Matrix4d dest)
Matrix4d
perspective(double fovy, double aspect, double zNear, double zFar)
Matrix4d
perspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
perspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
perspective(double fovy, double aspect, double zNear, double zFar, Matrix4d dest)
double
perspectiveFar()
double
perspectiveFov()
Matrix4d
perspectiveFrustumSlice(double near, double far, Matrix4d dest)
Matrix4d
perspectiveLH(double fovy, double aspect, double zNear, double zFar)
Matrix4d
perspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
perspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)
Matrix4d
perspectiveLH(double fovy, double aspect, double zNear, double zFar, Matrix4d dest)
double
perspectiveNear()
Vector3d
perspectiveOrigin(Vector3d origin)
Matrix4d
pick(double x, double y, double width, double height, int[] viewport)
Matrix4d
pick(double x, double y, double width, double height, int[] viewport, Matrix4d dest)
Vector3d
positiveX(Vector3d dir)
Vector3d
positiveY(Vector3d dir)
Vector3d
positiveZ(Vector3d dir)
Vector3d
project(double x, double y, double z, int[] viewport, Vector3d winCoordsDest)
Vector4d
project(double x, double y, double z, int[] viewport, Vector4d winCoordsDest)
Vector3d
project(Vector3dc position, int[] viewport, Vector3d winCoordsDest)
Vector4d
project(Vector3dc position, int[] viewport, Vector4d winCoordsDest)
Matrix4d
projectedGridRange(Matrix4dc projector, double sLower, double sUpper, Matrix4d dest)
byte
properties()
void
readExternal(java.io.ObjectInput in)
Matrix4d
reflect(double a, double b, double c, double d)
Matrix4d
reflect(double nx, double ny, double nz, double px, double py, double pz)
Matrix4d
reflect(double nx, double ny, double nz, double px, double py, double pz, Matrix4d dest)
Matrix4d
reflect(double a, double b, double c, double d, Matrix4d dest)
Matrix4d
reflect(Quaterniondc orientation, Vector3dc point)
Matrix4d
reflect(Quaterniondc orientation, Vector3dc point, Matrix4d dest)
Matrix4d
reflect(Vector3dc normal, Vector3dc point)
Matrix4d
reflect(Vector3dc normal, Vector3dc point, Matrix4d dest)
Matrix4d
reflection(double a, double b, double c, double d)
Matrix4d
reflection(double nx, double ny, double nz, double px, double py, double pz)
Matrix4d
reflection(Quaterniondc orientation, Vector3dc point)
Matrix4d
reflection(Vector3dc normal, Vector3dc point)
Matrix4d
rotate(double ang, double x, double y, double z)
Matrix4d
rotate(double ang, double x, double y, double z, Matrix4d dest)
Matrix4d
rotate(double angle, Vector3dc axis)
Matrix4d
rotate(double angle, Vector3dc axis, Matrix4d dest)
Matrix4d
rotate(double angle, Vector3fc axis)
Matrix4d
rotate(double angle, Vector3fc axis, Matrix4d dest)
Matrix4d
rotate(AxisAngle4d axisAngle)
Matrix4d
rotate(AxisAngle4d axisAngle, Matrix4d dest)
Matrix4d
rotate(AxisAngle4f axisAngle)
Matrix4d
rotate(AxisAngle4f axisAngle, Matrix4d dest)
Matrix4d
rotate(Quaterniondc quat)
Matrix4d
rotate(Quaterniondc quat, Matrix4d dest)
Matrix4d
rotate(Quaternionfc quat)
Matrix4d
rotate(Quaternionfc quat, Matrix4d dest)
Matrix4d
rotateAffine(double ang, double x, double y, double z)
Matrix4d
rotateAffine(double ang, double x, double y, double z, Matrix4d dest)
Matrix4d
rotateAffine(Quaterniondc quat)
Matrix4d
rotateAffine(Quaterniondc quat, Matrix4d dest)
Matrix4d
rotateAffine(Quaternionfc quat)
Matrix4d
rotateAffine(Quaternionfc quat, Matrix4d dest)
Matrix4d
rotateAffineXYZ(double angleX, double angleY, double angleZ)
Matrix4d
rotateAffineXYZ(double angleX, double angleY, double angleZ, Matrix4d dest)
Matrix4d
rotateAffineYXZ(double angleY, double angleX, double angleZ)
Matrix4d
rotateAffineYXZ(double angleY, double angleX, double angleZ, Matrix4d dest)
Matrix4d
rotateAffineZYX(double angleZ, double angleY, double angleX)
Matrix4d
rotateAffineZYX(double angleZ, double angleY, double angleX, Matrix4d dest)
Matrix4d
rotateAround(Quaterniondc quat, double ox, double oy, double oz)
Matrix4d
rotateAround(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest)
Matrix4d
rotateAroundLocal(Quaterniondc quat, double ox, double oy, double oz)
Matrix4d
rotateAroundLocal(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest)
Matrix4d
rotateLocal(double ang, double x, double y, double z)
Matrix4d
rotateLocal(double ang, double x, double y, double z, Matrix4d dest)
Matrix4d
rotateLocal(Quaterniondc quat)
Matrix4d
rotateLocal(Quaterniondc quat, Matrix4d dest)
Matrix4d
rotateLocal(Quaternionfc quat)
Matrix4d
rotateLocal(Quaternionfc quat, Matrix4d dest)
Matrix4d
rotateTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
Matrix4d
rotateTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix4d dest)
Matrix4d
rotateTowards(Vector3dc direction, Vector3dc up)
Matrix4d
rotateTowards(Vector3dc direction, Vector3dc up, Matrix4d dest)
Matrix4d
rotateTranslation(double ang, double x, double y, double z, Matrix4d dest)
Matrix4d
rotateTranslation(Quaterniondc quat, Matrix4d dest)
Matrix4d
rotateTranslation(Quaternionfc quat, Matrix4d dest)
Matrix4d
rotateX(double ang)
Matrix4d
rotateX(double ang, Matrix4d dest)
Matrix4d
rotateXYZ(double angleX, double angleY, double angleZ)
Matrix4d
rotateXYZ(double angleX, double angleY, double angleZ, Matrix4d dest)
Matrix4d
rotateXYZ(Vector3d angles)
Matrix4d
rotateY(double ang)
Matrix4d
rotateY(double ang, Matrix4d dest)
Matrix4d
rotateYXZ(double angleY, double angleX, double angleZ)
Matrix4d
rotateYXZ(double angleY, double angleX, double angleZ, Matrix4d dest)
Matrix4d
rotateYXZ(Vector3d angles)
Matrix4d
rotateZ(double ang)
Matrix4d
rotateZ(double ang, Matrix4d dest)
Matrix4d
rotateZYX(double angleZ, double angleY, double angleX)
Matrix4d
rotateZYX(double angleZ, double angleY, double angleX, Matrix4d dest)
Matrix4d
rotateZYX(Vector3d angles)
Matrix4d
rotation(double angle, double x, double y, double z)
Matrix4d
rotation(double angle, Vector3dc axis)
Matrix4d
rotation(double angle, Vector3fc axis)
Matrix4d
rotation(AxisAngle4d angleAxis)
Matrix4d
rotation(AxisAngle4f angleAxis)
Matrix4d
rotation(Quaterniondc quat)
Matrix4d
rotation(Quaternionfc quat)
Matrix4d
rotationTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
Matrix4d
rotationTowards(Vector3dc dir, Vector3dc up)
Matrix4d
rotationX(double ang)
Matrix4d
rotationXYZ(double angleX, double angleY, double angleZ)
Matrix4d
rotationY(double ang)
Matrix4d
rotationYXZ(double angleY, double angleX, double angleZ)
Matrix4d
rotationZ(double ang)
Matrix4d
rotationZYX(double angleZ, double angleY, double angleX)
Matrix4d
scale(double xyz)
Matrix4d
scale(double x, double y, double z)
Matrix4d
scale(double x, double y, double z, Matrix4d dest)
Matrix4d
scale(double xyz, Matrix4d dest)
Matrix4d
scale(Vector3dc xyz)
Matrix4d
scale(Vector3dc xyz, Matrix4d dest)
Matrix4d
scaleAround(double factor, double ox, double oy, double oz)
Matrix4d
scaleAround(double sx, double sy, double sz, double ox, double oy, double oz)
Matrix4d
scaleAround(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)
Matrix4d
scaleAround(double factor, double ox, double oy, double oz, Matrix4d dest)
Matrix4d
scaleAroundLocal(double factor, double ox, double oy, double oz)
Matrix4d
scaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz)
Matrix4d
scaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)
Matrix4d
scaleAroundLocal(double factor, double ox, double oy, double oz, Matrix4d dest)
Matrix4d
scaleLocal(double x, double y, double z)
Matrix4d
scaleLocal(double x, double y, double z, Matrix4d dest)
Matrix4d
scaling(double factor)
Matrix4d
scaling(double x, double y, double z)
Matrix4d
scaling(Vector3dc xyz)
Matrix4d
set(double[] m)
Matrix4d
set(double[] m, int off)
Matrix4d
set(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
Matrix4d
set(float[] m)
Matrix4d
set(float[] m, int off)
Matrix4d
set(java.nio.ByteBuffer buffer)
Matrix4d
set(java.nio.DoubleBuffer buffer)
Matrix4d
set(java.nio.FloatBuffer buffer)
Matrix4d
set(AxisAngle4d axisAngle)
Matrix4d
set(AxisAngle4f axisAngle)
Matrix4d
set(Matrix3dc mat)
Matrix4d
set(Matrix4dc m)
Matrix4d
set(Matrix4fc m)
Matrix4d
set(Matrix4x3dc m)
Matrix4d
set(Matrix4x3fc m)
Matrix4d
set(Quaterniondc q)
Matrix4d
set(Quaternionfc q)
Matrix4d
set(Vector4d col0, Vector4d col1, Vector4d col2, Vector4d col3)
Matrix4d
set3x3(Matrix3dc mat)
Matrix4d
set3x3(Matrix4dc mat)
Matrix4d
set4x3(Matrix4dc mat)
Matrix4d
set4x3(Matrix4x3dc mat)
Matrix4d
set4x3(Matrix4x3fc mat)
Matrix4d
setColumn(int column, Vector4dc src)
Matrix4d
setFloats(java.nio.ByteBuffer buffer)
Matrix4d
setFrustum(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
setFrustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setFrustumLH(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
setFrustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setLookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
Matrix4d
setLookAlong(Vector3dc dir, Vector3dc up)
Matrix4d
setLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
Matrix4d
setLookAt(Vector3dc eye, Vector3dc center, Vector3dc up)
Matrix4d
setLookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
Matrix4d
setLookAtLH(Vector3dc eye, Vector3dc center, Vector3dc up)
Matrix4d
setOrtho(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
setOrtho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setOrtho2D(double left, double right, double bottom, double top)
Matrix4d
setOrtho2DLH(double left, double right, double bottom, double top)
Matrix4d
setOrthoLH(double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4d
setOrthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setOrthoSymmetric(double width, double height, double zNear, double zFar)
Matrix4d
setOrthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setOrthoSymmetricLH(double width, double height, double zNear, double zFar)
Matrix4d
setOrthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setPerspective(double fovy, double aspect, double zNear, double zFar)
Matrix4d
setPerspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setPerspectiveLH(double fovy, double aspect, double zNear, double zFar)
Matrix4d
setPerspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)
Matrix4d
setRotationXYZ(double angleX, double angleY, double angleZ)
Matrix4d
setRotationYXZ(double angleY, double angleX, double angleZ)
Matrix4d
setRotationZYX(double angleZ, double angleY, double angleX)
Matrix4d
setRow(int row, Vector4dc src)
Matrix4d
setTranslation(double x, double y, double z)
Matrix4d
setTranslation(Vector3dc xyz)
Matrix4d
shadow(double lightX, double lightY, double lightZ, double lightW, double a, double b, double c, double d)
Matrix4d
shadow(double lightX, double lightY, double lightZ, double lightW, double a, double b, double c, double d, Matrix4d dest)
Matrix4d
shadow(double lightX, double lightY, double lightZ, double lightW, Matrix4dc planeTransform)
Matrix4d
shadow(double lightX, double lightY, double lightZ, double lightW, Matrix4dc planeTransform, Matrix4d dest)
Matrix4d
shadow(Vector4dc light, double a, double b, double c, double d)
Matrix4d
shadow(Vector4dc light, double a, double b, double c, double d, Matrix4d dest)
Matrix4d
shadow(Vector4dc light, Matrix4dc planeTransform, Matrix4d dest)
Matrix4d
shadow(Vector4d light, Matrix4d planeTransform)
Matrix4d
sub(Matrix4dc subtrahend)
Matrix4d
sub(Matrix4dc subtrahend, Matrix4d dest)
Matrix4d
sub4x3(Matrix4dc subtrahend)
Matrix4d
sub4x3(Matrix4dc subtrahend, Matrix4d dest)
Matrix4d
swap(Matrix4d other)
Matrix4dc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat formatter)
Vector4d
transform(double x, double y, double z, double w, Vector4d dest)
Vector4d
transform(Vector4d v)
Vector4d
transform(Vector4dc v, Vector4d dest)
Matrix4d
transformAab(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vector3d outMin, Vector3d outMax)
Matrix4d
transformAab(Vector3dc min, Vector3dc max, Vector3d outMin, Vector3d outMax)
Vector4d
transformAffine(double x, double y, double z, double w, Vector4d dest)
Vector4d
transformAffine(Vector4d v)
Vector4d
transformAffine(Vector4dc v, Vector4d dest)
Vector3d
transformDirection(double x, double y, double z, Vector3d dest)
Vector3d
transformDirection(Vector3d v)
Vector3d
transformDirection(Vector3dc v, Vector3d dest)
Vector3d
transformPosition(double x, double y, double z, Vector3d dest)
Vector3d
transformPosition(Vector3d v)
Vector3d
transformPosition(Vector3dc v, Vector3d dest)
Vector4d
transformProject(double x, double y, double z, double w, Vector4d dest)
Vector3d
transformProject(double x, double y, double z, Vector3d dest)
Vector3d
transformProject(Vector3d v)
Vector3d
transformProject(Vector3dc v, Vector3d dest)
Vector4d
transformProject(Vector4d v)
Vector4d
transformProject(Vector4dc v, Vector4d dest)
Matrix4d
translate(double x, double y, double z)
Matrix4d
translate(double x, double y, double z, Matrix4d dest)
Matrix4d
translate(Vector3dc offset)
Matrix4d
translate(Vector3dc offset, Matrix4d dest)
Matrix4d
translate(Vector3fc offset)
Matrix4d
translate(Vector3fc offset, Matrix4d dest)
Matrix4d
translateLocal(double x, double y, double z)
Matrix4d
translateLocal(double x, double y, double z, Matrix4d dest)
Matrix4d
translateLocal(Vector3dc offset)
Matrix4d
translateLocal(Vector3dc offset, Matrix4d dest)
Matrix4d
translateLocal(Vector3fc offset)
Matrix4d
translateLocal(Vector3fc offset, Matrix4d dest)
Matrix4d
translation(double x, double y, double z)
Matrix4d
translation(Vector3dc offset)
Matrix4d
translation(Vector3fc offset)
Matrix4d
translationRotate(double tx, double ty, double tz, double qx, double qy, double qz, double qw)
Matrix4d
translationRotate(double tx, double ty, double tz, Quaterniondc quat)
Matrix4d
translationRotateScale(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double scale)
Matrix4d
translationRotateScale(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz)
Matrix4d
translationRotateScale(Vector3dc translation, Quaterniondc quat, double scale)
Matrix4d
translationRotateScale(Vector3dc translation, Quaterniondc quat, Vector3dc scale)
Matrix4d
translationRotateScale(Vector3fc translation, Quaternionfc quat, double scale)
Matrix4d
translationRotateScale(Vector3fc translation, Quaternionfc quat, Vector3fc scale)
Matrix4d
translationRotateScaleInvert(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz)
Matrix4d
translationRotateScaleInvert(Vector3dc translation, Quaterniondc quat, double scale)
Matrix4d
translationRotateScaleInvert(Vector3dc translation, Quaterniondc quat, Vector3dc scale)
Matrix4d
translationRotateScaleInvert(Vector3fc translation, Quaternionfc quat, double scale)
Matrix4d
translationRotateScaleInvert(Vector3fc translation, Quaternionfc quat, Vector3fc scale)
Matrix4d
translationRotateScaleMulAffine(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz, Matrix4d m)
Matrix4d
translationRotateScaleMulAffine(Vector3fc translation, Quaterniondc quat, Vector3fc scale, Matrix4d m)
Matrix4d
translationRotateTowards(double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
Matrix4d
translationRotateTowards(Vector3dc pos, Vector3dc dir, Vector3dc up)
Matrix4d
transpose()
Matrix4d
transpose(Matrix4d dest)
Matrix4d
transpose3x3()
Matrix3d
transpose3x3(Matrix3d dest)
Matrix4d
transpose3x3(Matrix4d dest)
Matrix4d
trapezoidCrop(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y)
Vector3d
unproject(double winX, double winY, double winZ, int[] viewport, Vector3d dest)
Vector4d
unproject(double winX, double winY, double winZ, int[] viewport, Vector4d dest)
Vector3d
unproject(Vector3dc winCoords, int[] viewport, Vector3d dest)
Vector4d
unproject(Vector3dc winCoords, int[] viewport, Vector4d dest)
Vector3d
unprojectInv(double winX, double winY, double winZ, int[] viewport, Vector3d dest)
Vector4d
unprojectInv(double winX, double winY, double winZ, int[] viewport, Vector4d dest)
Vector3d
unprojectInv(Vector3dc winCoords, int[] viewport, Vector3d dest)
Vector4d
unprojectInv(Vector3dc winCoords, int[] viewport, Vector4d dest)
Matrix4d
unprojectInvRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)
Matrix4d
unprojectInvRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)
Matrix4d
unprojectRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)
Matrix4d
unprojectRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)
void
writeExternal(java.io.ObjectOutput out)
Matrix4d
zero()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Matrix4d
public Matrix4d() -
Matrix4d
-
Matrix4d
-
Matrix4d
-
Matrix4d
-
Matrix4d
-
Matrix4d
public Matrix4d(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) -
Matrix4d
public Matrix4d(java.nio.DoubleBuffer buffer) -
Matrix4d
-
-
Method Details
-
assumeNothing
-
assumeAffine
-
assumePerspective
-
properties
public byte properties()- Specified by:
properties
in interfaceMatrix4dc
-
m00
public double m00() -
m01
public double m01() -
m02
public double m02() -
m03
public double m03() -
m10
public double m10() -
m11
public double m11() -
m12
public double m12() -
m13
public double m13() -
m20
public double m20() -
m21
public double m21() -
m22
public double m22() -
m23
public double m23() -
m30
public double m30() -
m31
public double m31() -
m32
public double m32() -
m33
public double m33() -
m00
-
m01
-
m02
-
m03
-
m10
-
m11
-
m12
-
m13
-
m20
-
m21
-
m22
-
m23
-
m30
-
m31
-
m32
-
m33
-
identity
-
set
-
set
-
set
-
set
-
set
-
set3x3
-
set4x3
-
set4x3
-
set4x3
-
set
-
set
-
set
-
set
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mulPerspectiveAffine
-
mulPerspectiveAffine
- Specified by:
mulPerspectiveAffine
in interfaceMatrix4dc
-
mulAffineR
-
mulAffineR
- Specified by:
mulAffineR
in interfaceMatrix4dc
-
mulAffineR
-
mulAffineR
- Specified by:
mulAffineR
in interfaceMatrix4dc
-
mulAffineR
-
mulAffineR
-
mulAffine
-
mulAffine
-
mulTranslationAffine
- Specified by:
mulTranslationAffine
in interfaceMatrix4dc
-
mulOrthoAffine
-
mulOrthoAffine
- Specified by:
mulOrthoAffine
in interfaceMatrix4dc
-
fma4x3
-
fma4x3
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWise
in interfaceMatrix4dc
-
add4x3
-
add4x3
-
add4x3
-
add4x3
-
sub4x3
-
sub4x3
-
mul4x3ComponentWise
-
mul4x3ComponentWise
- Specified by:
mul4x3ComponentWise
in interfaceMatrix4dc
-
set
public Matrix4d set(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) -
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFloats
-
set
-
determinant
public double determinant()- Specified by:
determinant
in interfaceMatrix4dc
-
determinant3x3
public double determinant3x3()- Specified by:
determinant3x3
in interfaceMatrix4dc
-
determinantAffine
public double determinantAffine()- Specified by:
determinantAffine
in interfaceMatrix4dc
-
invert
-
invert
-
invertPerspective
- Specified by:
invertPerspective
in interfaceMatrix4dc
-
invertPerspective
-
invertFrustum
- Specified by:
invertFrustum
in interfaceMatrix4dc
-
invertFrustum
-
invertOrtho
- Specified by:
invertOrtho
in interfaceMatrix4dc
-
invertOrtho
-
invertPerspectiveView
- Specified by:
invertPerspectiveView
in interfaceMatrix4dc
-
invertAffine
- Specified by:
invertAffine
in interfaceMatrix4dc
-
invertAffine
-
invertAffineUnitScale
- Specified by:
invertAffineUnitScale
in interfaceMatrix4dc
-
invertAffineUnitScale
-
invertLookAt
- Specified by:
invertLookAt
in interfaceMatrix4dc
-
invertLookAt
-
transpose
-
transpose
-
transpose3x3
-
transpose3x3
- Specified by:
transpose3x3
in interfaceMatrix4dc
-
transpose3x3
- Specified by:
transpose3x3
in interfaceMatrix4dc
-
translation
-
translation
-
translation
-
setTranslation
-
setTranslation
-
getTranslation
- Specified by:
getTranslation
in interfaceMatrix4dc
-
getScale
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat formatter) -
get
-
get4x3
-
get3x3
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotation
in interfaceMatrix4dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotation
in interfaceMatrix4dc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotation
in interfaceMatrix4dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotation
in interfaceMatrix4dc
-
get
public java.nio.DoubleBuffer get(java.nio.DoubleBuffer buffer) -
get
public java.nio.DoubleBuffer get(int index, java.nio.DoubleBuffer buffer) -
get
public java.nio.FloatBuffer get(java.nio.FloatBuffer buffer) -
get
public java.nio.FloatBuffer get(int index, java.nio.FloatBuffer buffer) -
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer buffer) -
get
public java.nio.ByteBuffer get(int index, java.nio.ByteBuffer buffer) -
getFloats
public java.nio.ByteBuffer getFloats(java.nio.ByteBuffer buffer) -
getFloats
public java.nio.ByteBuffer getFloats(int index, java.nio.ByteBuffer buffer) -
get
public double[] get(double[] arr, int offset) -
get
public double[] get(double[] arr) -
get
public float[] get(float[] arr, int offset) -
get
public float[] get(float[] arr) -
getTransposed
public java.nio.DoubleBuffer getTransposed(java.nio.DoubleBuffer buffer)- Specified by:
getTransposed
in interfaceMatrix4dc
-
getTransposed
public java.nio.DoubleBuffer getTransposed(int index, java.nio.DoubleBuffer buffer)- Specified by:
getTransposed
in interfaceMatrix4dc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer buffer)- Specified by:
getTransposed
in interfaceMatrix4dc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int index, java.nio.ByteBuffer buffer)- Specified by:
getTransposed
in interfaceMatrix4dc
-
get4x3Transposed
public java.nio.DoubleBuffer get4x3Transposed(java.nio.DoubleBuffer buffer)- Specified by:
get4x3Transposed
in interfaceMatrix4dc
-
get4x3Transposed
public java.nio.DoubleBuffer get4x3Transposed(int index, java.nio.DoubleBuffer buffer)- Specified by:
get4x3Transposed
in interfaceMatrix4dc
-
get4x3Transposed
public java.nio.ByteBuffer get4x3Transposed(java.nio.ByteBuffer buffer)- Specified by:
get4x3Transposed
in interfaceMatrix4dc
-
get4x3Transposed
public java.nio.ByteBuffer get4x3Transposed(int index, java.nio.ByteBuffer buffer)- Specified by:
get4x3Transposed
in interfaceMatrix4dc
-
zero
-
scaling
-
scaling
-
scaling
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
setRotationXYZ
-
setRotationZYX
-
setRotationYXZ
-
rotation
-
rotation
-
transform
-
transform
-
transform
-
transformProject
- Specified by:
transformProject
in interfaceMatrix4dc
-
transformProject
- Specified by:
transformProject
in interfaceMatrix4dc
-
transformProject
- Specified by:
transformProject
in interfaceMatrix4dc
-
transformProject
- Specified by:
transformProject
in interfaceMatrix4dc
-
transformProject
- Specified by:
transformProject
in interfaceMatrix4dc
-
transformProject
- Specified by:
transformProject
in interfaceMatrix4dc
-
transformPosition
- Specified by:
transformPosition
in interfaceMatrix4dc
-
transformPosition
- Specified by:
transformPosition
in interfaceMatrix4dc
-
transformPosition
- Specified by:
transformPosition
in interfaceMatrix4dc
-
transformDirection
- Specified by:
transformDirection
in interfaceMatrix4dc
-
transformDirection
- Specified by:
transformDirection
in interfaceMatrix4dc
-
transformDirection
- Specified by:
transformDirection
in interfaceMatrix4dc
-
transformAffine
- Specified by:
transformAffine
in interfaceMatrix4dc
-
transformAffine
- Specified by:
transformAffine
in interfaceMatrix4dc
-
transformAffine
- Specified by:
transformAffine
in interfaceMatrix4dc
-
set3x3
-
scale
-
scale
-
scale
-
scale
-
scale
-
scale
-
scaleAround
public Matrix4d scaleAround(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)- Specified by:
scaleAround
in interfaceMatrix4dc
-
scaleAround
-
scaleAround
-
scaleAround
- Specified by:
scaleAround
in interfaceMatrix4dc
-
scaleLocal
- Specified by:
scaleLocal
in interfaceMatrix4dc
-
scaleLocal
-
scaleAroundLocal
public Matrix4d scaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)- Specified by:
scaleAroundLocal
in interfaceMatrix4dc
-
scaleAroundLocal
-
scaleAroundLocal
-
scaleAroundLocal
- Specified by:
scaleAroundLocal
in interfaceMatrix4dc
-
rotate
-
rotate
-
rotateTranslation
- Specified by:
rotateTranslation
in interfaceMatrix4dc
-
rotateAffine
- Specified by:
rotateAffine
in interfaceMatrix4dc
-
rotateAffine
-
rotateAround
-
rotateAround
- Specified by:
rotateAround
in interfaceMatrix4dc
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix4dc
-
rotateLocal
-
rotateAroundLocal
public Matrix4d rotateAroundLocal(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest)- Specified by:
rotateAroundLocal
in interfaceMatrix4dc
-
rotateAroundLocal
-
translate
-
translate
-
translate
-
translate
-
translate
-
translate
-
translateLocal
-
translateLocal
- Specified by:
translateLocal
in interfaceMatrix4dc
-
translateLocal
-
translateLocal
- Specified by:
translateLocal
in interfaceMatrix4dc
-
translateLocal
- Specified by:
translateLocal
in interfaceMatrix4dc
-
translateLocal
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
rotateXYZ
-
rotateXYZ
-
rotateXYZ
-
rotateAffineXYZ
-
rotateAffineXYZ
- Specified by:
rotateAffineXYZ
in interfaceMatrix4dc
-
rotateZYX
-
rotateZYX
-
rotateZYX
-
rotateAffineZYX
-
rotateAffineZYX
- Specified by:
rotateAffineZYX
in interfaceMatrix4dc
-
rotateYXZ
-
rotateYXZ
-
rotateYXZ
-
rotateAffineYXZ
-
rotateAffineYXZ
- Specified by:
rotateAffineYXZ
in interfaceMatrix4dc
-
rotation
-
rotation
-
rotation
-
rotation
-
translationRotateScale
public Matrix4d translationRotateScale(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz) -
translationRotateScale
-
translationRotateScale
-
translationRotateScale
public Matrix4d translationRotateScale(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double scale) -
translationRotateScale
-
translationRotateScale
-
translationRotateScaleInvert
public Matrix4d translationRotateScaleInvert(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz) -
translationRotateScaleInvert
public Matrix4d translationRotateScaleInvert(Vector3dc translation, Quaterniondc quat, Vector3dc scale) -
translationRotateScaleInvert
public Matrix4d translationRotateScaleInvert(Vector3fc translation, Quaternionfc quat, Vector3fc scale) -
translationRotateScaleInvert
public Matrix4d translationRotateScaleInvert(Vector3dc translation, Quaterniondc quat, double scale) -
translationRotateScaleInvert
public Matrix4d translationRotateScaleInvert(Vector3fc translation, Quaternionfc quat, double scale) -
translationRotateScaleMulAffine
-
translationRotateScaleMulAffine
public Matrix4d translationRotateScaleMulAffine(Vector3fc translation, Quaterniondc quat, Vector3fc scale, Matrix4d m) -
translationRotate
public Matrix4d translationRotate(double tx, double ty, double tz, double qx, double qy, double qz, double qw) -
translationRotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotateAffine
- Specified by:
rotateAffine
in interfaceMatrix4dc
-
rotateAffine
-
rotateTranslation
- Specified by:
rotateTranslation
in interfaceMatrix4dc
-
rotateTranslation
- Specified by:
rotateTranslation
in interfaceMatrix4dc
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix4dc
-
rotateLocal
-
rotateAffine
- Specified by:
rotateAffine
in interfaceMatrix4dc
-
rotateAffine
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix4dc
-
rotateLocal
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
getRow
-
setRow
- Throws:
java.lang.IndexOutOfBoundsException
-
getColumn
-
setColumn
- Throws:
java.lang.IndexOutOfBoundsException
-
normal
-
normal
-
normal
-
normalize3x3
-
normalize3x3
- Specified by:
normalize3x3
in interfaceMatrix4dc
-
normalize3x3
- Specified by:
normalize3x3
in interfaceMatrix4dc
-
unproject
-
unproject
-
unproject
-
unproject
-
unprojectRay
public Matrix4d unprojectRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectRay
in interfaceMatrix4dc
-
unprojectRay
public Matrix4d unprojectRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectRay
in interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInv
in interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInv
in interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInv
in interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInv
in interfaceMatrix4dc
-
unprojectInvRay
public Matrix4d unprojectInvRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectInvRay
in interfaceMatrix4dc
-
unprojectInvRay
public Matrix4d unprojectInvRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectInvRay
in interfaceMatrix4dc
-
project
-
project
-
project
-
project
-
reflect
-
reflect
-
reflect
-
reflect
-
reflect
-
reflect
-
reflect
-
reflect
-
reflection
-
reflection
-
reflection
-
reflection
-
ortho
-
ortho
-
ortho
public Matrix4d ortho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
ortho
public Matrix4d ortho(double left, double right, double bottom, double top, double zNear, double zFar) -
orthoLH
-
orthoLH
-
orthoLH
public Matrix4d orthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
orthoLH
public Matrix4d orthoLH(double left, double right, double bottom, double top, double zNear, double zFar) -
setOrtho
public Matrix4d setOrtho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
setOrtho
public Matrix4d setOrtho(double left, double right, double bottom, double top, double zNear, double zFar) -
setOrthoLH
public Matrix4d setOrthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
setOrthoLH
public Matrix4d setOrthoLH(double left, double right, double bottom, double top, double zNear, double zFar) -
orthoSymmetric
public Matrix4d orthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)- Specified by:
orthoSymmetric
in interfaceMatrix4dc
-
orthoSymmetric
public Matrix4d orthoSymmetric(double width, double height, double zNear, double zFar, Matrix4d dest)- Specified by:
orthoSymmetric
in interfaceMatrix4dc
-
orthoSymmetric
public Matrix4d orthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne) -
orthoSymmetric
-
orthoSymmetricLH
public Matrix4d orthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)- Specified by:
orthoSymmetricLH
in interfaceMatrix4dc
-
orthoSymmetricLH
public Matrix4d orthoSymmetricLH(double width, double height, double zNear, double zFar, Matrix4d dest)- Specified by:
orthoSymmetricLH
in interfaceMatrix4dc
-
orthoSymmetricLH
public Matrix4d orthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne) -
orthoSymmetricLH
-
setOrthoSymmetric
public Matrix4d setOrthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne) -
setOrthoSymmetric
-
setOrthoSymmetricLH
public Matrix4d setOrthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne) -
setOrthoSymmetricLH
-
ortho2D
-
ortho2D
-
ortho2DLH
-
ortho2DLH
-
setOrtho2D
-
setOrtho2DLH
-
lookAlong
-
lookAlong
-
lookAlong
-
lookAlong
public Matrix4d lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ) -
setLookAlong
-
setLookAlong
public Matrix4d setLookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ) -
setLookAt
-
setLookAt
public Matrix4d setLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ) -
lookAt
-
lookAt
-
lookAt
-
lookAt
public Matrix4d lookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ) -
lookAtPerspective
public Matrix4d lookAtPerspective(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)- Specified by:
lookAtPerspective
in interfaceMatrix4dc
-
setLookAtLH
-
setLookAtLH
public Matrix4d setLookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ) -
lookAtLH
-
lookAtLH
-
lookAtLH
-
lookAtLH
public Matrix4d lookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ) -
lookAtPerspectiveLH
public Matrix4d lookAtPerspectiveLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)- Specified by:
lookAtPerspectiveLH
in interfaceMatrix4dc
-
perspective
public Matrix4d perspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)- Specified by:
perspective
in interfaceMatrix4dc
-
perspective
- Specified by:
perspective
in interfaceMatrix4dc
-
perspective
public Matrix4d perspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne) -
perspective
-
setPerspective
public Matrix4d setPerspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne) -
setPerspective
-
perspectiveLH
public Matrix4d perspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)- Specified by:
perspectiveLH
in interfaceMatrix4dc
-
perspectiveLH
public Matrix4d perspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne) -
perspectiveLH
public Matrix4d perspectiveLH(double fovy, double aspect, double zNear, double zFar, Matrix4d dest)- Specified by:
perspectiveLH
in interfaceMatrix4dc
-
perspectiveLH
-
setPerspectiveLH
public Matrix4d setPerspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne) -
setPerspectiveLH
-
frustum
-
frustum
-
frustum
public Matrix4d frustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
frustum
public Matrix4d frustum(double left, double right, double bottom, double top, double zNear, double zFar) -
setFrustum
public Matrix4d setFrustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
setFrustum
public Matrix4d setFrustum(double left, double right, double bottom, double top, double zNear, double zFar) -
frustumLH
-
frustumLH
public Matrix4d frustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
frustumLH
-
frustumLH
public Matrix4d frustumLH(double left, double right, double bottom, double top, double zNear, double zFar) -
setFrustumLH
public Matrix4d setFrustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne) -
setFrustumLH
public Matrix4d setFrustumLH(double left, double right, double bottom, double top, double zNear, double zFar) -
frustumPlane
- Specified by:
frustumPlane
in interfaceMatrix4dc
-
frustumCorner
- Specified by:
frustumCorner
in interfaceMatrix4dc
-
perspectiveOrigin
- Specified by:
perspectiveOrigin
in interfaceMatrix4dc
-
perspectiveFov
public double perspectiveFov()- Specified by:
perspectiveFov
in interfaceMatrix4dc
-
perspectiveNear
public double perspectiveNear()- Specified by:
perspectiveNear
in interfaceMatrix4dc
-
perspectiveFar
public double perspectiveFar()- Specified by:
perspectiveFar
in interfaceMatrix4dc
-
frustumRayDir
- Specified by:
frustumRayDir
in interfaceMatrix4dc
-
positiveZ
-
normalizedPositiveZ
- Specified by:
normalizedPositiveZ
in interfaceMatrix4dc
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveX
in interfaceMatrix4dc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceMatrix4dc
-
originAffine
- Specified by:
originAffine
in interfaceMatrix4dc
-
origin
-
shadow
-
shadow
-
shadow
public Matrix4d shadow(double lightX, double lightY, double lightZ, double lightW, double a, double b, double c, double d) -
shadow
-
shadow
-
shadow
-
shadow
-
shadow
-
billboardCylindrical
-
billboardSpherical
-
billboardSpherical
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
pick
-
pick
-
isAffine
public boolean isAffine() -
swap
-
arcball
-
arcball
-
arcball
public Matrix4d arcball(double radius, double centerX, double centerY, double centerZ, double angleX, double angleY) -
arcball
-
frustumAabb
-
projectedGridRange
public Matrix4d projectedGridRange(Matrix4dc projector, double sLower, double sUpper, Matrix4d dest)- Specified by:
projectedGridRange
in interfaceMatrix4dc
-
perspectiveFrustumSlice
- Specified by:
perspectiveFrustumSlice
in interfaceMatrix4dc
-
orthoCrop
-
trapezoidCrop
public Matrix4d trapezoidCrop(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y) -
transformAab
public Matrix4d transformAab(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vector3d outMin, Vector3d outMax)- Specified by:
transformAab
in interfaceMatrix4dc
-
transformAab
- Specified by:
transformAab
in interfaceMatrix4dc
-
lerp
-
lerp
-
rotateTowards
- Specified by:
rotateTowards
in interfaceMatrix4dc
-
rotateTowards
-
rotateTowards
public Matrix4d rotateTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ) -
rotateTowards
public Matrix4d rotateTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix4d dest)- Specified by:
rotateTowards
in interfaceMatrix4dc
-
rotationTowards
-
rotationTowards
public Matrix4d rotationTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ) -
translationRotateTowards
-
translationRotateTowards
public Matrix4d translationRotateTowards(double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double upX, double upY, double upZ) -
getEulerAnglesZYX
- Specified by:
getEulerAnglesZYX
in interfaceMatrix4dc
-
toImmutable
-