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 Matrix4dadd(Matrix4dc other)Matrix4dadd(Matrix4dc other, Matrix4d dest)Matrix4dadd4x3(Matrix4dc other)Matrix4dadd4x3(Matrix4dc other, Matrix4d dest)Matrix4dadd4x3(Matrix4fc other)Matrix4dadd4x3(Matrix4fc other, Matrix4d dest)Matrix4darcball(double radius, double centerX, double centerY, double centerZ, double angleX, double angleY)Matrix4darcball(double radius, double centerX, double centerY, double centerZ, double angleX, double angleY, Matrix4d dest)Matrix4darcball(double radius, Vector3dc center, double angleX, double angleY)Matrix4darcball(double radius, Vector3dc center, double angleX, double angleY, Matrix4d dest)Matrix4dassumeAffine()Matrix4dassumeNothing()Matrix4dassumePerspective()Matrix4dbillboardCylindrical(Vector3dc objPos, Vector3dc targetPos, Vector3dc up)Matrix4dbillboardSpherical(Vector3dc objPos, Vector3dc targetPos)Matrix4dbillboardSpherical(Vector3dc objPos, Vector3dc targetPos, Vector3dc up)doubledeterminant()doubledeterminant3x3()doubledeterminantAffine()booleanequals(java.lang.Object obj)Matrix4dfma4x3(Matrix4dc other, double otherFactor)Matrix4dfma4x3(Matrix4dc other, double otherFactor, Matrix4d dest)Matrix4dfrustum(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dfrustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dfrustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dfrustum(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)Matrix4dfrustumAabb(Vector3d min, Vector3d max)Vector3dfrustumCorner(int corner, Vector3d point)Matrix4dfrustumLH(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dfrustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dfrustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dfrustumLH(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)Vector4dfrustumPlane(int plane, Vector4d planeEquation)Vector3dfrustumRayDir(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.ByteBufferget(int index, java.nio.ByteBuffer buffer)java.nio.DoubleBufferget(int index, java.nio.DoubleBuffer buffer)java.nio.FloatBufferget(int index, java.nio.FloatBuffer buffer)java.nio.ByteBufferget(java.nio.ByteBuffer buffer)java.nio.DoubleBufferget(java.nio.DoubleBuffer buffer)java.nio.FloatBufferget(java.nio.FloatBuffer buffer)Matrix4dget(Matrix4d dest)Matrix3dget3x3(Matrix3d dest)Matrix4x3dget4x3(Matrix4x3d dest)java.nio.ByteBufferget4x3Transposed(int index, java.nio.ByteBuffer buffer)java.nio.DoubleBufferget4x3Transposed(int index, java.nio.DoubleBuffer buffer)java.nio.ByteBufferget4x3Transposed(java.nio.ByteBuffer buffer)java.nio.DoubleBufferget4x3Transposed(java.nio.DoubleBuffer buffer)Vector4dgetColumn(int column, Vector4d dest)Vector3dgetEulerAnglesZYX(Vector3d dest)java.nio.ByteBuffergetFloats(int index, java.nio.ByteBuffer buffer)java.nio.ByteBuffergetFloats(java.nio.ByteBuffer buffer)QuaterniondgetNormalizedRotation(Quaterniond dest)QuaternionfgetNormalizedRotation(Quaternionf dest)Vector4dgetRow(int row, Vector4d dest)Vector3dgetScale(Vector3d dest)Vector3dgetTranslation(Vector3d dest)java.nio.ByteBuffergetTransposed(int index, java.nio.ByteBuffer buffer)java.nio.DoubleBuffergetTransposed(int index, java.nio.DoubleBuffer buffer)java.nio.ByteBuffergetTransposed(java.nio.ByteBuffer buffer)java.nio.DoubleBuffergetTransposed(java.nio.DoubleBuffer buffer)QuaterniondgetUnnormalizedRotation(Quaterniond dest)QuaternionfgetUnnormalizedRotation(Quaternionf dest)inthashCode()Matrix4didentity()Matrix4dinvert()Matrix4dinvert(Matrix4d dest)Matrix4dinvertAffine()Matrix4dinvertAffine(Matrix4d dest)Matrix4dinvertAffineUnitScale()Matrix4dinvertAffineUnitScale(Matrix4d dest)Matrix4dinvertFrustum()Matrix4dinvertFrustum(Matrix4d dest)Matrix4dinvertLookAt()Matrix4dinvertLookAt(Matrix4d dest)Matrix4dinvertOrtho()Matrix4dinvertOrtho(Matrix4d dest)Matrix4dinvertPerspective()Matrix4dinvertPerspective(Matrix4d dest)Matrix4dinvertPerspectiveView(Matrix4dc view, Matrix4d dest)booleanisAffine()Matrix4dlerp(Matrix4dc other, double t)Matrix4dlerp(Matrix4dc other, double t, Matrix4d dest)Matrix4dlookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)Matrix4dlookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix4d dest)Matrix4dlookAlong(Vector3dc dir, Vector3dc up)Matrix4dlookAlong(Vector3dc dir, Vector3dc up, Matrix4d dest)Matrix4dlookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)Matrix4dlookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)Matrix4dlookAt(Vector3dc eye, Vector3dc center, Vector3dc up)Matrix4dlookAt(Vector3dc eye, Vector3dc center, Vector3dc up, Matrix4d dest)Matrix4dlookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)Matrix4dlookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)Matrix4dlookAtLH(Vector3dc eye, Vector3dc center, Vector3dc up)Matrix4dlookAtLH(Vector3dc eye, Vector3dc center, Vector3dc up, Matrix4d dest)Matrix4dlookAtPerspective(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)Matrix4dlookAtPerspectiveLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ, Matrix4d dest)doublem00()Matrix4dm00(double m00)doublem01()Matrix4dm01(double m01)doublem02()Matrix4dm02(double m02)doublem03()Matrix4dm03(double m03)doublem10()Matrix4dm10(double m10)doublem11()Matrix4dm11(double m11)doublem12()Matrix4dm12(double m12)doublem13()Matrix4dm13(double m13)doublem20()Matrix4dm20(double m20)doublem21()Matrix4dm21(double m21)doublem22()Matrix4dm22(double m22)doublem23()Matrix4dm23(double m23)doublem30()Matrix4dm30(double m30)doublem31()Matrix4dm31(double m31)doublem32()Matrix4dm32(double m32)doublem33()Matrix4dm33(double m33)Matrix4dmul(Matrix4dc right)Matrix4dmul(Matrix4dc right, Matrix4d dest)Matrix4dmul(Matrix4f right)Matrix4dmul(Matrix4fc right, Matrix4d dest)Matrix4dmul(Matrix4x3dc right, Matrix4d dest)Matrix4dmul(Matrix4x3fc right, Matrix4d dest)Matrix4dmul4x3ComponentWise(Matrix4dc other)Matrix4dmul4x3ComponentWise(Matrix4dc other, Matrix4d dest)Matrix4dmulAffine(Matrix4dc right)Matrix4dmulAffine(Matrix4dc right, Matrix4d dest)Matrix4dmulAffineR(Matrix4dc right)Matrix4dmulAffineR(Matrix4dc right, Matrix4d dest)Matrix4dmulAffineR(Matrix4x3dc right)Matrix4dmulAffineR(Matrix4x3dc right, Matrix4d dest)Matrix4dmulAffineR(Matrix4x3fc right)Matrix4dmulAffineR(Matrix4x3fc right, Matrix4d dest)Matrix4dmulComponentWise(Matrix4dc other)Matrix4dmulComponentWise(Matrix4dc other, Matrix4d dest)Matrix4dmulOrthoAffine(Matrix4dc view)Matrix4dmulOrthoAffine(Matrix4dc view, Matrix4d dest)Matrix4dmulPerspectiveAffine(Matrix4dc view)Matrix4dmulPerspectiveAffine(Matrix4dc view, Matrix4d dest)Matrix4dmulTranslationAffine(Matrix4dc right, Matrix4d dest)Matrix4dnormal()Matrix3dnormal(Matrix3d dest)Matrix4dnormal(Matrix4d dest)Matrix4dnormalize3x3()Matrix3dnormalize3x3(Matrix3d dest)Matrix4dnormalize3x3(Matrix4d dest)Vector3dnormalizedPositiveX(Vector3d dir)Vector3dnormalizedPositiveY(Vector3d dir)Vector3dnormalizedPositiveZ(Vector3d dir)Vector3dorigin(Vector3d origin)Vector3doriginAffine(Vector3d origin)Matrix4dortho(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dortho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dortho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dortho(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)Matrix4dortho2D(double left, double right, double bottom, double top)Matrix4dortho2D(double left, double right, double bottom, double top, Matrix4d dest)Matrix4dortho2DLH(double left, double right, double bottom, double top)Matrix4dortho2DLH(double left, double right, double bottom, double top, Matrix4d dest)Matrix4dorthoCrop(Matrix4dc view, Matrix4d dest)Matrix4dorthoLH(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dorthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dorthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dorthoLH(double left, double right, double bottom, double top, double zNear, double zFar, Matrix4d dest)Matrix4dorthoSymmetric(double width, double height, double zNear, double zFar)Matrix4dorthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne)Matrix4dorthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dorthoSymmetric(double width, double height, double zNear, double zFar, Matrix4d dest)Matrix4dorthoSymmetricLH(double width, double height, double zNear, double zFar)Matrix4dorthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne)Matrix4dorthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dorthoSymmetricLH(double width, double height, double zNear, double zFar, Matrix4d dest)Matrix4dperspective(double fovy, double aspect, double zNear, double zFar)Matrix4dperspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)Matrix4dperspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dperspective(double fovy, double aspect, double zNear, double zFar, Matrix4d dest)doubleperspectiveFar()doubleperspectiveFov()Matrix4dperspectiveFrustumSlice(double near, double far, Matrix4d dest)Matrix4dperspectiveLH(double fovy, double aspect, double zNear, double zFar)Matrix4dperspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)Matrix4dperspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)Matrix4dperspectiveLH(double fovy, double aspect, double zNear, double zFar, Matrix4d dest)doubleperspectiveNear()Vector3dperspectiveOrigin(Vector3d origin)Matrix4dpick(double x, double y, double width, double height, int[] viewport)Matrix4dpick(double x, double y, double width, double height, int[] viewport, Matrix4d dest)Vector3dpositiveX(Vector3d dir)Vector3dpositiveY(Vector3d dir)Vector3dpositiveZ(Vector3d dir)Vector3dproject(double x, double y, double z, int[] viewport, Vector3d winCoordsDest)Vector4dproject(double x, double y, double z, int[] viewport, Vector4d winCoordsDest)Vector3dproject(Vector3dc position, int[] viewport, Vector3d winCoordsDest)Vector4dproject(Vector3dc position, int[] viewport, Vector4d winCoordsDest)Matrix4dprojectedGridRange(Matrix4dc projector, double sLower, double sUpper, Matrix4d dest)byteproperties()voidreadExternal(java.io.ObjectInput in)Matrix4dreflect(double a, double b, double c, double d)Matrix4dreflect(double nx, double ny, double nz, double px, double py, double pz)Matrix4dreflect(double nx, double ny, double nz, double px, double py, double pz, Matrix4d dest)Matrix4dreflect(double a, double b, double c, double d, Matrix4d dest)Matrix4dreflect(Quaterniondc orientation, Vector3dc point)Matrix4dreflect(Quaterniondc orientation, Vector3dc point, Matrix4d dest)Matrix4dreflect(Vector3dc normal, Vector3dc point)Matrix4dreflect(Vector3dc normal, Vector3dc point, Matrix4d dest)Matrix4dreflection(double a, double b, double c, double d)Matrix4dreflection(double nx, double ny, double nz, double px, double py, double pz)Matrix4dreflection(Quaterniondc orientation, Vector3dc point)Matrix4dreflection(Vector3dc normal, Vector3dc point)Matrix4drotate(double ang, double x, double y, double z)Matrix4drotate(double ang, double x, double y, double z, Matrix4d dest)Matrix4drotate(double angle, Vector3dc axis)Matrix4drotate(double angle, Vector3dc axis, Matrix4d dest)Matrix4drotate(double angle, Vector3fc axis)Matrix4drotate(double angle, Vector3fc axis, Matrix4d dest)Matrix4drotate(AxisAngle4d axisAngle)Matrix4drotate(AxisAngle4d axisAngle, Matrix4d dest)Matrix4drotate(AxisAngle4f axisAngle)Matrix4drotate(AxisAngle4f axisAngle, Matrix4d dest)Matrix4drotate(Quaterniondc quat)Matrix4drotate(Quaterniondc quat, Matrix4d dest)Matrix4drotate(Quaternionfc quat)Matrix4drotate(Quaternionfc quat, Matrix4d dest)Matrix4drotateAffine(double ang, double x, double y, double z)Matrix4drotateAffine(double ang, double x, double y, double z, Matrix4d dest)Matrix4drotateAffine(Quaterniondc quat)Matrix4drotateAffine(Quaterniondc quat, Matrix4d dest)Matrix4drotateAffine(Quaternionfc quat)Matrix4drotateAffine(Quaternionfc quat, Matrix4d dest)Matrix4drotateAffineXYZ(double angleX, double angleY, double angleZ)Matrix4drotateAffineXYZ(double angleX, double angleY, double angleZ, Matrix4d dest)Matrix4drotateAffineYXZ(double angleY, double angleX, double angleZ)Matrix4drotateAffineYXZ(double angleY, double angleX, double angleZ, Matrix4d dest)Matrix4drotateAffineZYX(double angleZ, double angleY, double angleX)Matrix4drotateAffineZYX(double angleZ, double angleY, double angleX, Matrix4d dest)Matrix4drotateAround(Quaterniondc quat, double ox, double oy, double oz)Matrix4drotateAround(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest)Matrix4drotateAroundLocal(Quaterniondc quat, double ox, double oy, double oz)Matrix4drotateAroundLocal(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest)Matrix4drotateLocal(double ang, double x, double y, double z)Matrix4drotateLocal(double ang, double x, double y, double z, Matrix4d dest)Matrix4drotateLocal(Quaterniondc quat)Matrix4drotateLocal(Quaterniondc quat, Matrix4d dest)Matrix4drotateLocal(Quaternionfc quat)Matrix4drotateLocal(Quaternionfc quat, Matrix4d dest)Matrix4drotateTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)Matrix4drotateTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix4d dest)Matrix4drotateTowards(Vector3dc direction, Vector3dc up)Matrix4drotateTowards(Vector3dc direction, Vector3dc up, Matrix4d dest)Matrix4drotateTranslation(double ang, double x, double y, double z, Matrix4d dest)Matrix4drotateTranslation(Quaterniondc quat, Matrix4d dest)Matrix4drotateTranslation(Quaternionfc quat, Matrix4d dest)Matrix4drotateX(double ang)Matrix4drotateX(double ang, Matrix4d dest)Matrix4drotateXYZ(double angleX, double angleY, double angleZ)Matrix4drotateXYZ(double angleX, double angleY, double angleZ, Matrix4d dest)Matrix4drotateXYZ(Vector3d angles)Matrix4drotateY(double ang)Matrix4drotateY(double ang, Matrix4d dest)Matrix4drotateYXZ(double angleY, double angleX, double angleZ)Matrix4drotateYXZ(double angleY, double angleX, double angleZ, Matrix4d dest)Matrix4drotateYXZ(Vector3d angles)Matrix4drotateZ(double ang)Matrix4drotateZ(double ang, Matrix4d dest)Matrix4drotateZYX(double angleZ, double angleY, double angleX)Matrix4drotateZYX(double angleZ, double angleY, double angleX, Matrix4d dest)Matrix4drotateZYX(Vector3d angles)Matrix4drotation(double angle, double x, double y, double z)Matrix4drotation(double angle, Vector3dc axis)Matrix4drotation(double angle, Vector3fc axis)Matrix4drotation(AxisAngle4d angleAxis)Matrix4drotation(AxisAngle4f angleAxis)Matrix4drotation(Quaterniondc quat)Matrix4drotation(Quaternionfc quat)Matrix4drotationTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)Matrix4drotationTowards(Vector3dc dir, Vector3dc up)Matrix4drotationX(double ang)Matrix4drotationXYZ(double angleX, double angleY, double angleZ)Matrix4drotationY(double ang)Matrix4drotationYXZ(double angleY, double angleX, double angleZ)Matrix4drotationZ(double ang)Matrix4drotationZYX(double angleZ, double angleY, double angleX)Matrix4dscale(double xyz)Matrix4dscale(double x, double y, double z)Matrix4dscale(double x, double y, double z, Matrix4d dest)Matrix4dscale(double xyz, Matrix4d dest)Matrix4dscale(Vector3dc xyz)Matrix4dscale(Vector3dc xyz, Matrix4d dest)Matrix4dscaleAround(double factor, double ox, double oy, double oz)Matrix4dscaleAround(double sx, double sy, double sz, double ox, double oy, double oz)Matrix4dscaleAround(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)Matrix4dscaleAround(double factor, double ox, double oy, double oz, Matrix4d dest)Matrix4dscaleAroundLocal(double factor, double ox, double oy, double oz)Matrix4dscaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz)Matrix4dscaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)Matrix4dscaleAroundLocal(double factor, double ox, double oy, double oz, Matrix4d dest)Matrix4dscaleLocal(double x, double y, double z)Matrix4dscaleLocal(double x, double y, double z, Matrix4d dest)Matrix4dscaling(double factor)Matrix4dscaling(double x, double y, double z)Matrix4dscaling(Vector3dc xyz)Matrix4dset(double[] m)Matrix4dset(double[] m, int off)Matrix4dset(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)Matrix4dset(float[] m)Matrix4dset(float[] m, int off)Matrix4dset(java.nio.ByteBuffer buffer)Matrix4dset(java.nio.DoubleBuffer buffer)Matrix4dset(java.nio.FloatBuffer buffer)Matrix4dset(AxisAngle4d axisAngle)Matrix4dset(AxisAngle4f axisAngle)Matrix4dset(Matrix3dc mat)Matrix4dset(Matrix4dc m)Matrix4dset(Matrix4fc m)Matrix4dset(Matrix4x3dc m)Matrix4dset(Matrix4x3fc m)Matrix4dset(Quaterniondc q)Matrix4dset(Quaternionfc q)Matrix4dset(Vector4d col0, Vector4d col1, Vector4d col2, Vector4d col3)Matrix4dset3x3(Matrix3dc mat)Matrix4dset3x3(Matrix4dc mat)Matrix4dset4x3(Matrix4dc mat)Matrix4dset4x3(Matrix4x3dc mat)Matrix4dset4x3(Matrix4x3fc mat)Matrix4dsetColumn(int column, Vector4dc src)Matrix4dsetFloats(java.nio.ByteBuffer buffer)Matrix4dsetFrustum(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dsetFrustum(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetFrustumLH(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dsetFrustumLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetLookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)Matrix4dsetLookAlong(Vector3dc dir, Vector3dc up)Matrix4dsetLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)Matrix4dsetLookAt(Vector3dc eye, Vector3dc center, Vector3dc up)Matrix4dsetLookAtLH(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)Matrix4dsetLookAtLH(Vector3dc eye, Vector3dc center, Vector3dc up)Matrix4dsetOrtho(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dsetOrtho(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetOrtho2D(double left, double right, double bottom, double top)Matrix4dsetOrtho2DLH(double left, double right, double bottom, double top)Matrix4dsetOrthoLH(double left, double right, double bottom, double top, double zNear, double zFar)Matrix4dsetOrthoLH(double left, double right, double bottom, double top, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetOrthoSymmetric(double width, double height, double zNear, double zFar)Matrix4dsetOrthoSymmetric(double width, double height, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetOrthoSymmetricLH(double width, double height, double zNear, double zFar)Matrix4dsetOrthoSymmetricLH(double width, double height, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetPerspective(double fovy, double aspect, double zNear, double zFar)Matrix4dsetPerspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetPerspectiveLH(double fovy, double aspect, double zNear, double zFar)Matrix4dsetPerspectiveLH(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne)Matrix4dsetRotationXYZ(double angleX, double angleY, double angleZ)Matrix4dsetRotationYXZ(double angleY, double angleX, double angleZ)Matrix4dsetRotationZYX(double angleZ, double angleY, double angleX)Matrix4dsetRow(int row, Vector4dc src)Matrix4dsetTranslation(double x, double y, double z)Matrix4dsetTranslation(Vector3dc xyz)Matrix4dshadow(double lightX, double lightY, double lightZ, double lightW, double a, double b, double c, double d)Matrix4dshadow(double lightX, double lightY, double lightZ, double lightW, double a, double b, double c, double d, Matrix4d dest)Matrix4dshadow(double lightX, double lightY, double lightZ, double lightW, Matrix4dc planeTransform)Matrix4dshadow(double lightX, double lightY, double lightZ, double lightW, Matrix4dc planeTransform, Matrix4d dest)Matrix4dshadow(Vector4dc light, double a, double b, double c, double d)Matrix4dshadow(Vector4dc light, double a, double b, double c, double d, Matrix4d dest)Matrix4dshadow(Vector4dc light, Matrix4dc planeTransform, Matrix4d dest)Matrix4dshadow(Vector4d light, Matrix4d planeTransform)Matrix4dsub(Matrix4dc subtrahend)Matrix4dsub(Matrix4dc subtrahend, Matrix4d dest)Matrix4dsub4x3(Matrix4dc subtrahend)Matrix4dsub4x3(Matrix4dc subtrahend, Matrix4d dest)Matrix4dswap(Matrix4d other)Matrix4dctoImmutable()java.lang.StringtoString()java.lang.StringtoString(java.text.NumberFormat formatter)Vector4dtransform(double x, double y, double z, double w, Vector4d dest)Vector4dtransform(Vector4d v)Vector4dtransform(Vector4dc v, Vector4d dest)Matrix4dtransformAab(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vector3d outMin, Vector3d outMax)Matrix4dtransformAab(Vector3dc min, Vector3dc max, Vector3d outMin, Vector3d outMax)Vector4dtransformAffine(double x, double y, double z, double w, Vector4d dest)Vector4dtransformAffine(Vector4d v)Vector4dtransformAffine(Vector4dc v, Vector4d dest)Vector3dtransformDirection(double x, double y, double z, Vector3d dest)Vector3dtransformDirection(Vector3d v)Vector3dtransformDirection(Vector3dc v, Vector3d dest)Vector3dtransformPosition(double x, double y, double z, Vector3d dest)Vector3dtransformPosition(Vector3d v)Vector3dtransformPosition(Vector3dc v, Vector3d dest)Vector4dtransformProject(double x, double y, double z, double w, Vector4d dest)Vector3dtransformProject(double x, double y, double z, Vector3d dest)Vector3dtransformProject(Vector3d v)Vector3dtransformProject(Vector3dc v, Vector3d dest)Vector4dtransformProject(Vector4d v)Vector4dtransformProject(Vector4dc v, Vector4d dest)Matrix4dtranslate(double x, double y, double z)Matrix4dtranslate(double x, double y, double z, Matrix4d dest)Matrix4dtranslate(Vector3dc offset)Matrix4dtranslate(Vector3dc offset, Matrix4d dest)Matrix4dtranslate(Vector3fc offset)Matrix4dtranslate(Vector3fc offset, Matrix4d dest)Matrix4dtranslateLocal(double x, double y, double z)Matrix4dtranslateLocal(double x, double y, double z, Matrix4d dest)Matrix4dtranslateLocal(Vector3dc offset)Matrix4dtranslateLocal(Vector3dc offset, Matrix4d dest)Matrix4dtranslateLocal(Vector3fc offset)Matrix4dtranslateLocal(Vector3fc offset, Matrix4d dest)Matrix4dtranslation(double x, double y, double z)Matrix4dtranslation(Vector3dc offset)Matrix4dtranslation(Vector3fc offset)Matrix4dtranslationRotate(double tx, double ty, double tz, double qx, double qy, double qz, double qw)Matrix4dtranslationRotate(double tx, double ty, double tz, Quaterniondc quat)Matrix4dtranslationRotateScale(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double scale)Matrix4dtranslationRotateScale(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz)Matrix4dtranslationRotateScale(Vector3dc translation, Quaterniondc quat, double scale)Matrix4dtranslationRotateScale(Vector3dc translation, Quaterniondc quat, Vector3dc scale)Matrix4dtranslationRotateScale(Vector3fc translation, Quaternionfc quat, double scale)Matrix4dtranslationRotateScale(Vector3fc translation, Quaternionfc quat, Vector3fc scale)Matrix4dtranslationRotateScaleInvert(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz)Matrix4dtranslationRotateScaleInvert(Vector3dc translation, Quaterniondc quat, double scale)Matrix4dtranslationRotateScaleInvert(Vector3dc translation, Quaterniondc quat, Vector3dc scale)Matrix4dtranslationRotateScaleInvert(Vector3fc translation, Quaternionfc quat, double scale)Matrix4dtranslationRotateScaleInvert(Vector3fc translation, Quaternionfc quat, Vector3fc scale)Matrix4dtranslationRotateScaleMulAffine(double tx, double ty, double tz, double qx, double qy, double qz, double qw, double sx, double sy, double sz, Matrix4d m)Matrix4dtranslationRotateScaleMulAffine(Vector3fc translation, Quaterniondc quat, Vector3fc scale, Matrix4d m)Matrix4dtranslationRotateTowards(double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double upX, double upY, double upZ)Matrix4dtranslationRotateTowards(Vector3dc pos, Vector3dc dir, Vector3dc up)Matrix4dtranspose()Matrix4dtranspose(Matrix4d dest)Matrix4dtranspose3x3()Matrix3dtranspose3x3(Matrix3d dest)Matrix4dtranspose3x3(Matrix4d dest)Matrix4dtrapezoidCrop(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y)Vector3dunproject(double winX, double winY, double winZ, int[] viewport, Vector3d dest)Vector4dunproject(double winX, double winY, double winZ, int[] viewport, Vector4d dest)Vector3dunproject(Vector3dc winCoords, int[] viewport, Vector3d dest)Vector4dunproject(Vector3dc winCoords, int[] viewport, Vector4d dest)Vector3dunprojectInv(double winX, double winY, double winZ, int[] viewport, Vector3d dest)Vector4dunprojectInv(double winX, double winY, double winZ, int[] viewport, Vector4d dest)Vector3dunprojectInv(Vector3dc winCoords, int[] viewport, Vector3d dest)Vector4dunprojectInv(Vector3dc winCoords, int[] viewport, Vector4d dest)Matrix4dunprojectInvRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)Matrix4dunprojectInvRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)Matrix4dunprojectRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)Matrix4dunprojectRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)voidwriteExternal(java.io.ObjectOutput out)Matrix4dzero()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:
propertiesin 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:
mulPerspectiveAffinein interfaceMatrix4dc
-
mulAffineR
-
mulAffineR
- Specified by:
mulAffineRin interfaceMatrix4dc
-
mulAffineR
-
mulAffineR
- Specified by:
mulAffineRin interfaceMatrix4dc
-
mulAffineR
-
mulAffineR
-
mulAffine
-
mulAffine
-
mulTranslationAffine
- Specified by:
mulTranslationAffinein interfaceMatrix4dc
-
mulOrthoAffine
-
mulOrthoAffine
- Specified by:
mulOrthoAffinein interfaceMatrix4dc
-
fma4x3
-
fma4x3
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWisein interfaceMatrix4dc
-
add4x3
-
add4x3
-
add4x3
-
add4x3
-
sub4x3
-
sub4x3
-
mul4x3ComponentWise
-
mul4x3ComponentWise
- Specified by:
mul4x3ComponentWisein 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:
determinantin interfaceMatrix4dc
-
determinant3x3
public double determinant3x3()- Specified by:
determinant3x3in interfaceMatrix4dc
-
determinantAffine
public double determinantAffine()- Specified by:
determinantAffinein interfaceMatrix4dc
-
invert
-
invert
-
invertPerspective
- Specified by:
invertPerspectivein interfaceMatrix4dc
-
invertPerspective
-
invertFrustum
- Specified by:
invertFrustumin interfaceMatrix4dc
-
invertFrustum
-
invertOrtho
- Specified by:
invertOrthoin interfaceMatrix4dc
-
invertOrtho
-
invertPerspectiveView
- Specified by:
invertPerspectiveViewin interfaceMatrix4dc
-
invertAffine
- Specified by:
invertAffinein interfaceMatrix4dc
-
invertAffine
-
invertAffineUnitScale
- Specified by:
invertAffineUnitScalein interfaceMatrix4dc
-
invertAffineUnitScale
-
invertLookAt
- Specified by:
invertLookAtin interfaceMatrix4dc
-
invertLookAt
-
transpose
-
transpose
-
transpose3x3
-
transpose3x3
- Specified by:
transpose3x3in interfaceMatrix4dc
-
transpose3x3
- Specified by:
transpose3x3in interfaceMatrix4dc
-
translation
-
translation
-
translation
-
setTranslation
-
setTranslation
-
getTranslation
- Specified by:
getTranslationin interfaceMatrix4dc
-
getScale
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat formatter) -
get
-
get4x3
-
get3x3
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotationin interfaceMatrix4dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotationin interfaceMatrix4dc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotationin interfaceMatrix4dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotationin 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:
getTransposedin interfaceMatrix4dc
-
getTransposed
public java.nio.DoubleBuffer getTransposed(int index, java.nio.DoubleBuffer buffer)- Specified by:
getTransposedin interfaceMatrix4dc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer buffer)- Specified by:
getTransposedin interfaceMatrix4dc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int index, java.nio.ByteBuffer buffer)- Specified by:
getTransposedin interfaceMatrix4dc
-
get4x3Transposed
public java.nio.DoubleBuffer get4x3Transposed(java.nio.DoubleBuffer buffer)- Specified by:
get4x3Transposedin interfaceMatrix4dc
-
get4x3Transposed
public java.nio.DoubleBuffer get4x3Transposed(int index, java.nio.DoubleBuffer buffer)- Specified by:
get4x3Transposedin interfaceMatrix4dc
-
get4x3Transposed
public java.nio.ByteBuffer get4x3Transposed(java.nio.ByteBuffer buffer)- Specified by:
get4x3Transposedin interfaceMatrix4dc
-
get4x3Transposed
public java.nio.ByteBuffer get4x3Transposed(int index, java.nio.ByteBuffer buffer)- Specified by:
get4x3Transposedin interfaceMatrix4dc
-
zero
-
scaling
-
scaling
-
scaling
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
setRotationXYZ
-
setRotationZYX
-
setRotationYXZ
-
rotation
-
rotation
-
transform
-
transform
-
transform
-
transformProject
- Specified by:
transformProjectin interfaceMatrix4dc
-
transformProject
- Specified by:
transformProjectin interfaceMatrix4dc
-
transformProject
- Specified by:
transformProjectin interfaceMatrix4dc
-
transformProject
- Specified by:
transformProjectin interfaceMatrix4dc
-
transformProject
- Specified by:
transformProjectin interfaceMatrix4dc
-
transformProject
- Specified by:
transformProjectin interfaceMatrix4dc
-
transformPosition
- Specified by:
transformPositionin interfaceMatrix4dc
-
transformPosition
- Specified by:
transformPositionin interfaceMatrix4dc
-
transformPosition
- Specified by:
transformPositionin interfaceMatrix4dc
-
transformDirection
- Specified by:
transformDirectionin interfaceMatrix4dc
-
transformDirection
- Specified by:
transformDirectionin interfaceMatrix4dc
-
transformDirection
- Specified by:
transformDirectionin interfaceMatrix4dc
-
transformAffine
- Specified by:
transformAffinein interfaceMatrix4dc
-
transformAffine
- Specified by:
transformAffinein interfaceMatrix4dc
-
transformAffine
- Specified by:
transformAffinein 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:
scaleAroundin interfaceMatrix4dc
-
scaleAround
-
scaleAround
-
scaleAround
- Specified by:
scaleAroundin interfaceMatrix4dc
-
scaleLocal
- Specified by:
scaleLocalin interfaceMatrix4dc
-
scaleLocal
-
scaleAroundLocal
public Matrix4d scaleAroundLocal(double sx, double sy, double sz, double ox, double oy, double oz, Matrix4d dest)- Specified by:
scaleAroundLocalin interfaceMatrix4dc
-
scaleAroundLocal
-
scaleAroundLocal
-
scaleAroundLocal
- Specified by:
scaleAroundLocalin interfaceMatrix4dc
-
rotate
-
rotate
-
rotateTranslation
- Specified by:
rotateTranslationin interfaceMatrix4dc
-
rotateAffine
- Specified by:
rotateAffinein interfaceMatrix4dc
-
rotateAffine
-
rotateAround
-
rotateAround
- Specified by:
rotateAroundin interfaceMatrix4dc
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix4dc
-
rotateLocal
-
rotateAroundLocal
public Matrix4d rotateAroundLocal(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest)- Specified by:
rotateAroundLocalin interfaceMatrix4dc
-
rotateAroundLocal
-
translate
-
translate
-
translate
-
translate
-
translate
-
translate
-
translateLocal
-
translateLocal
- Specified by:
translateLocalin interfaceMatrix4dc
-
translateLocal
-
translateLocal
- Specified by:
translateLocalin interfaceMatrix4dc
-
translateLocal
- Specified by:
translateLocalin interfaceMatrix4dc
-
translateLocal
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
rotateXYZ
-
rotateXYZ
-
rotateXYZ
-
rotateAffineXYZ
-
rotateAffineXYZ
- Specified by:
rotateAffineXYZin interfaceMatrix4dc
-
rotateZYX
-
rotateZYX
-
rotateZYX
-
rotateAffineZYX
-
rotateAffineZYX
- Specified by:
rotateAffineZYXin interfaceMatrix4dc
-
rotateYXZ
-
rotateYXZ
-
rotateYXZ
-
rotateAffineYXZ
-
rotateAffineYXZ
- Specified by:
rotateAffineYXZin 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:
rotateAffinein interfaceMatrix4dc
-
rotateAffine
-
rotateTranslation
- Specified by:
rotateTranslationin interfaceMatrix4dc
-
rotateTranslation
- Specified by:
rotateTranslationin interfaceMatrix4dc
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix4dc
-
rotateLocal
-
rotateAffine
- Specified by:
rotateAffinein interfaceMatrix4dc
-
rotateAffine
-
rotateLocal
- Specified by:
rotateLocalin 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:
normalize3x3in interfaceMatrix4dc
-
normalize3x3
- Specified by:
normalize3x3in interfaceMatrix4dc
-
unproject
-
unproject
-
unproject
-
unproject
-
unprojectRay
public Matrix4d unprojectRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectRayin interfaceMatrix4dc
-
unprojectRay
public Matrix4d unprojectRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectRayin interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInvin interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInvin interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInvin interfaceMatrix4dc
-
unprojectInv
- Specified by:
unprojectInvin interfaceMatrix4dc
-
unprojectInvRay
public Matrix4d unprojectInvRay(Vector2dc winCoords, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectInvRayin interfaceMatrix4dc
-
unprojectInvRay
public Matrix4d unprojectInvRay(double winX, double winY, int[] viewport, Vector3d originDest, Vector3d dirDest)- Specified by:
unprojectInvRayin 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:
orthoSymmetricin interfaceMatrix4dc
-
orthoSymmetric
public Matrix4d orthoSymmetric(double width, double height, double zNear, double zFar, Matrix4d dest)- Specified by:
orthoSymmetricin 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:
orthoSymmetricLHin interfaceMatrix4dc
-
orthoSymmetricLH
public Matrix4d orthoSymmetricLH(double width, double height, double zNear, double zFar, Matrix4d dest)- Specified by:
orthoSymmetricLHin 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:
lookAtPerspectivein 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:
lookAtPerspectiveLHin interfaceMatrix4dc
-
perspective
public Matrix4d perspective(double fovy, double aspect, double zNear, double zFar, boolean zZeroToOne, Matrix4d dest)- Specified by:
perspectivein interfaceMatrix4dc
-
perspective
- Specified by:
perspectivein 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:
perspectiveLHin 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:
perspectiveLHin 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:
frustumPlanein interfaceMatrix4dc
-
frustumCorner
- Specified by:
frustumCornerin interfaceMatrix4dc
-
perspectiveOrigin
- Specified by:
perspectiveOriginin interfaceMatrix4dc
-
perspectiveFov
public double perspectiveFov()- Specified by:
perspectiveFovin interfaceMatrix4dc
-
perspectiveNear
public double perspectiveNear()- Specified by:
perspectiveNearin interfaceMatrix4dc
-
perspectiveFar
public double perspectiveFar()- Specified by:
perspectiveFarin interfaceMatrix4dc
-
frustumRayDir
- Specified by:
frustumRayDirin interfaceMatrix4dc
-
positiveZ
-
normalizedPositiveZ
- Specified by:
normalizedPositiveZin interfaceMatrix4dc
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveXin interfaceMatrix4dc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveYin interfaceMatrix4dc
-
originAffine
- Specified by:
originAffinein 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin 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:
projectedGridRangein interfaceMatrix4dc
-
perspectiveFrustumSlice
- Specified by:
perspectiveFrustumSlicein 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:
transformAabin interfaceMatrix4dc
-
transformAab
- Specified by:
transformAabin interfaceMatrix4dc
-
lerp
-
lerp
-
rotateTowards
- Specified by:
rotateTowardsin 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:
rotateTowardsin 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:
getEulerAnglesZYXin interfaceMatrix4dc
-
toImmutable
-