| Package | Description |
|---|---|
| org.joml |
Contains all classes of JOML.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Matrix4f
Contains the definition of a 4x4 matrix of floats, and associated functions to transform
it.
|
class |
Matrix4fStack
A stack of many
Matrix4f instances. |
| Modifier and Type | Method and Description |
|---|---|
Matrix4f |
Matrix4f.add(Matrix4fc other)
Component-wise add
this and other. |
Matrix4f |
Matrix4fc.add(Matrix4fc other,
Matrix4f dest)
Component-wise add
this and other and store the result in dest. |
Matrix4f |
Matrix4f.add(Matrix4fc other,
Matrix4f dest) |
Matrix4f |
Matrix4f.add4x3(Matrix4fc other)
Component-wise add the upper 4x3 submatrices of
this and other. |
Matrix4d |
Matrix4d.add4x3(Matrix4fc other)
Component-wise add the upper 4x3 submatrices of
this and other. |
Matrix4d |
Matrix4dc.add4x3(Matrix4fc other,
Matrix4d dest)
Component-wise add the upper 4x3 submatrices of
this and other
and store the result in dest. |
Matrix4d |
Matrix4d.add4x3(Matrix4fc other,
Matrix4d dest) |
Matrix4f |
Matrix4fc.add4x3(Matrix4fc other,
Matrix4f dest)
Component-wise add the upper 4x3 submatrices of
this and other
and store the result in dest. |
Matrix4f |
Matrix4f.add4x3(Matrix4fc other,
Matrix4f dest) |
boolean |
Matrix4fc.equals(Matrix4fc m,
float delta)
Compare the matrix elements of
this matrix with the given matrix using the given delta
and return whether all of them are equal within a maximum difference of delta. |
boolean |
Matrix4f.equals(Matrix4fc m,
float delta) |
Matrix4f |
Matrix4f.fma4x3(Matrix4fc other,
float otherFactor)
Component-wise add the upper 4x3 submatrices of
this and other
by first multiplying each component of other's 4x3 submatrix by otherFactor and
adding that result to this. |
Matrix4f |
Matrix4fc.fma4x3(Matrix4fc other,
float otherFactor,
Matrix4f dest)
Component-wise add the upper 4x3 submatrices of
this and other
by first multiplying each component of other's 4x3 submatrix by otherFactor,
adding that to this and storing the final result in dest. |
Matrix4f |
Matrix4f.fma4x3(Matrix4fc other,
float otherFactor,
Matrix4f dest) |
Matrix4f |
Matrix4fc.invertPerspectiveView(Matrix4fc view,
Matrix4f dest)
If
this is a perspective projection matrix obtained via one of the perspective() methods,
that is, if this is a symmetrical perspective frustum transformation
and the given view matrix is affine and has unit scaling (for example by being obtained via lookAt()),
then this method builds the inverse of this * view and stores it into the given dest. |
Matrix4f |
Matrix4f.invertPerspectiveView(Matrix4fc view,
Matrix4f dest)
If
this is a perspective projection matrix obtained via one of the perspective() methods
or via setPerspective(), that is, if this is a symmetrical perspective frustum transformation
and the given view matrix is affine and has unit scaling (for example by being obtained via lookAt()),
then this method builds the inverse of this * view and stores it into the given dest. |
Matrix4f |
Matrix4f.lerp(Matrix4fc other,
float t)
Linearly interpolate
this and other using the given interpolation factor t
and store the result in this. |
Matrix4f |
Matrix4fc.lerp(Matrix4fc other,
float t,
Matrix4f dest)
Linearly interpolate
this and other using the given interpolation factor t
and store the result in dest. |
Matrix4f |
Matrix4f.lerp(Matrix4fc other,
float t,
Matrix4f dest) |
Matrix4f |
Matrix4f.mul(Matrix4fc right)
Multiply this matrix by the supplied
right matrix and store the result in this. |
Vector4d |
Vector4d.mul(Matrix4fc mat)
Multiply the given matrix
mat with this Vector4d. |
Vector4f |
Vector4f.mul(Matrix4fc mat)
Multiply the given matrix mat with this Vector4f and store the result in
this. |
Matrix4d |
Matrix4dc.mul(Matrix4fc right,
Matrix4d dest)
Multiply this matrix by the supplied parameter matrix and store the result in
dest. |
Matrix4d |
Matrix4d.mul(Matrix4fc right,
Matrix4d dest) |
Matrix4f |
Matrix4fc.mul(Matrix4fc right,
Matrix4f dest)
Multiply this matrix by the supplied
right matrix and store the result in dest. |
Matrix4f |
Matrix4f.mul(Matrix4fc right,
Matrix4f dest) |
Vector4d |
Vector4dc.mul(Matrix4fc mat,
Vector4d dest)
Multiply the given matrix mat with this Vector4d and store the result in
dest. |
Vector4d |
Vector4d.mul(Matrix4fc mat,
Vector4d dest) |
Vector4f |
Vector4fc.mul(Matrix4fc mat,
Vector4f dest)
Multiply the given matrix mat with this Vector4f and store the result in
dest. |
Vector4f |
Vector4f.mul(Matrix4fc mat,
Vector4f dest) |
Matrix4f |
Matrix4f.mul4x3ComponentWise(Matrix4fc other)
Component-wise multiply the upper 4x3 submatrices of
this by other. |
Matrix4f |
Matrix4fc.mul4x3ComponentWise(Matrix4fc other,
Matrix4f dest)
Component-wise multiply the upper 4x3 submatrices of
this by other
and store the result in dest. |
Matrix4f |
Matrix4f.mul4x3ComponentWise(Matrix4fc other,
Matrix4f dest) |
Matrix4f |
Matrix4f.mulAffine(Matrix4fc right)
Multiply this matrix by the supplied
right matrix, both of which are assumed to be affine, and store the result in this. |
Matrix4f |
Matrix4fc.mulAffine(Matrix4fc right,
Matrix4f dest)
Multiply this matrix by the supplied
right matrix, both of which are assumed to be affine, and store the result in dest. |
Matrix4f |
Matrix4f.mulAffine(Matrix4fc right,
Matrix4f dest) |
Vector4f |
Vector4fc.mulAffine(Matrix4fc mat,
Vector4f dest)
Multiply the given affine matrix mat with this Vector4f and store the result in
dest. |
Vector4f |
Vector4f.mulAffine(Matrix4fc mat,
Vector4f dest) |
Matrix4f |
Matrix4f.mulAffineR(Matrix4fc right)
Multiply this matrix by the supplied
right matrix, which is assumed to be affine, and store the result in this. |
Matrix4f |
Matrix4fc.mulAffineR(Matrix4fc right,
Matrix4f dest)
Multiply this matrix by the supplied
right matrix, which is assumed to be affine, and store the result in dest. |
Matrix4f |
Matrix4f.mulAffineR(Matrix4fc right,
Matrix4f dest) |
Matrix4f |
Matrix4f.mulComponentWise(Matrix4fc other)
Component-wise multiply
this by other. |
Matrix4f |
Matrix4fc.mulComponentWise(Matrix4fc other,
Matrix4f dest)
Component-wise multiply
this by other and store the result in dest. |
Matrix4f |
Matrix4f.mulComponentWise(Matrix4fc other,
Matrix4f dest) |
Vector3d |
Vector3d.mulDirection(Matrix4fc mat)
Multiply the given 4x4 matrix
mat with this. |
Vector3f |
Vector3f.mulDirection(Matrix4fc mat)
Multiply the given 4x4 matrix
mat with this. |
Vector3d |
Vector3d.mulDirection(Matrix4fc mat,
Vector3d dest) |
Vector3d |
Vector3dc.mulDirection(Matrix4fc mat,
Vector3d dest)
Multiply the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3fc.mulDirection(Matrix4fc mat,
Vector3f dest)
Multiply the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3f.mulDirection(Matrix4fc mat,
Vector3f dest) |
Matrix4f |
Matrix4f.mulLocal(Matrix4fc left)
Pre-multiply this matrix by the supplied
left matrix and store the result in this. |
Matrix4f |
Matrix4fc.mulLocal(Matrix4fc left,
Matrix4f dest)
Pre-multiply this matrix by the supplied
left matrix and store the result in dest. |
Matrix4f |
Matrix4f.mulLocal(Matrix4fc left,
Matrix4f dest) |
Matrix4f |
Matrix4f.mulLocalAffine(Matrix4fc left)
Pre-multiply this matrix by the supplied
left matrix, both of which are assumed to be affine, and store the result in this. |
Matrix4f |
Matrix4fc.mulLocalAffine(Matrix4fc left,
Matrix4f dest)
Pre-multiply this matrix by the supplied
left matrix, both of which are assumed to be affine, and store the result in dest. |
Matrix4f |
Matrix4f.mulLocalAffine(Matrix4fc left,
Matrix4f dest) |
Matrix4f |
Matrix4f.mulOrthoAffine(Matrix4fc view)
|
Matrix4f |
Matrix4fc.mulOrthoAffine(Matrix4fc view,
Matrix4f dest)
Multiply
this orthographic projection matrix by the supplied affine view matrix
and store the result in dest. |
Matrix4f |
Matrix4f.mulOrthoAffine(Matrix4fc view,
Matrix4f dest) |
Matrix4f |
Matrix4f.mulPerspectiveAffine(Matrix4fc view)
|
Matrix4f |
Matrix4fc.mulPerspectiveAffine(Matrix4fc view,
Matrix4f dest)
Multiply
this symmetric perspective projection matrix by the supplied affine view matrix and store the result in dest. |
Matrix4f |
Matrix4f.mulPerspectiveAffine(Matrix4fc view,
Matrix4f dest) |
Vector3d |
Vector3d.mulPosition(Matrix4fc mat)
Multiply the given 4x4 matrix
mat with this. |
Vector3f |
Vector3f.mulPosition(Matrix4fc mat)
Multiply the given 4x4 matrix
mat with this. |
Vector3d |
Vector3d.mulPosition(Matrix4fc mat,
Vector3d dest) |
Vector3d |
Vector3dc.mulPosition(Matrix4fc mat,
Vector3d dest)
Multiply the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3fc.mulPosition(Matrix4fc mat,
Vector3f dest)
Multiply the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3f.mulPosition(Matrix4fc mat,
Vector3f dest) |
double |
Vector3d.mulPositionW(Matrix4fc mat)
Multiply the given 4x4 matrix
mat with this and return the w component
of the resulting 4D vector. |
float |
Vector3f.mulPositionW(Matrix4fc mat)
Multiply the given 4x4 matrix
mat with this and return the w component
of the resulting 4D vector. |
double |
Vector3d.mulPositionW(Matrix4fc mat,
Vector3d dest) |
double |
Vector3dc.mulPositionW(Matrix4fc mat,
Vector3d dest)
Multiply the given 4x4 matrix
mat with this, store the
result in dest and return the w component of the resulting 4D vector. |
float |
Vector3fc.mulPositionW(Matrix4fc mat,
Vector3f dest)
Multiply the given 4x4 matrix
mat with this, store the
result in dest and return the w component of the resulting 4D vector. |
float |
Vector3f.mulPositionW(Matrix4fc mat,
Vector3f dest) |
Vector3d |
Vector3d.mulProject(Matrix4fc mat)
Multiply the given matrix
mat with this Vector3d, perform perspective division. |
Vector3f |
Vector3f.mulProject(Matrix4fc mat)
Multiply the given matrix
mat with this Vector3f, perform perspective division. |
Vector4f |
Vector4f.mulProject(Matrix4fc mat)
Multiply the given matrix
mat with this Vector4f, perform perspective division. |
Vector3d |
Vector3d.mulProject(Matrix4fc mat,
Vector3d dest) |
Vector3d |
Vector3dc.mulProject(Matrix4fc mat,
Vector3d dest)
Multiply the given matrix
mat with this Vector3d, perform perspective division
and store the result in dest. |
Vector3f |
Vector3fc.mulProject(Matrix4fc mat,
Vector3f dest)
Multiply the given matrix
mat with this Vector3f, perform perspective division
and store the result in dest. |
Vector3f |
Vector3f.mulProject(Matrix4fc mat,
Vector3f dest) |
Vector4f |
Vector4fc.mulProject(Matrix4fc mat,
Vector4f dest)
Multiply the given matrix
mat with this Vector4f, perform perspective division
and store the result in dest. |
Vector4f |
Vector4f.mulProject(Matrix4fc mat,
Vector4f dest) |
Matrix4f |
Matrix4fc.mulTranslationAffine(Matrix4fc right,
Matrix4f dest)
Multiply this matrix, which is assumed to only contain a translation, by the supplied
right matrix, which is assumed to be affine, and store the result in dest. |
Matrix4f |
Matrix4f.mulTranslationAffine(Matrix4fc right,
Matrix4f dest) |
Vector3d |
Vector3d.mulTransposeDirection(Matrix4fc mat)
Multiply the transpose of the given 4x4 matrix
mat with this. |
Vector3f |
Vector3f.mulTransposeDirection(Matrix4fc mat)
Multiply the transpose of the given 4x4 matrix
mat with this. |
Vector3d |
Vector3d.mulTransposeDirection(Matrix4fc mat,
Vector3d dest) |
Vector3d |
Vector3dc.mulTransposeDirection(Matrix4fc mat,
Vector3d dest)
Multiply the transpose of the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3fc.mulTransposeDirection(Matrix4fc mat,
Vector3f dest)
Multiply the transpose of the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3f.mulTransposeDirection(Matrix4fc mat,
Vector3f dest) |
Vector3d |
Vector3d.mulTransposePosition(Matrix4fc mat)
Multiply the transpose of the given 4x4 matrix
mat with this. |
Vector3f |
Vector3f.mulTransposePosition(Matrix4fc mat)
Multiply the transpose of the given 4x4 matrix
mat with this. |
Vector3d |
Vector3d.mulTransposePosition(Matrix4fc mat,
Vector3d dest) |
Vector3d |
Vector3dc.mulTransposePosition(Matrix4fc mat,
Vector3d dest)
Multiply the transpose of the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3fc.mulTransposePosition(Matrix4fc mat,
Vector3f dest)
Multiply the transpose of the given 4x4 matrix
mat with this and store the
result in dest. |
Vector3f |
Vector3f.mulTransposePosition(Matrix4fc mat,
Vector3f dest) |
Matrix4f |
Matrix4fc.orthoCrop(Matrix4fc view,
Matrix4f dest)
Build an ortographic projection transformation that fits the view-projection transformation represented by
this
into the given affine view transformation. |
Matrix4f |
Matrix4f.orthoCrop(Matrix4fc view,
Matrix4f dest)
Build an ortographic projection transformation that fits the view-projection transformation represented by
this
into the given affine view transformation. |
Matrix4f |
Matrix4fc.projectedGridRange(Matrix4fc projector,
float sLower,
float sUpper,
Matrix4f dest)
Compute the range matrix for the Projected Grid transformation as described in chapter "2.4.2 Creating the range conversion matrix"
of the paper Real-time water rendering - Introducing the projected grid concept
based on the inverse of the view-projection matrix which is assumed to be
this, and store that range matrix into dest. |
Matrix4f |
Matrix4f.projectedGridRange(Matrix4fc projector,
float sLower,
float sUpper,
Matrix4f dest) |
FrustumRayBuilder |
FrustumRayBuilder.set(Matrix4fc m)
|
Matrix3d |
Matrix3d.set(Matrix4fc mat)
Set the elements of this matrix to the upper left 3x3 of the given
Matrix4fc. |
AxisAngle4f |
AxisAngle4f.set(Matrix4fc m)
Set this
AxisAngle4f to be equivalent to the rotational component
of the given Matrix4fc. |
Matrix4f |
Matrix4f.set(Matrix4fc m)
Store the values of the given matrix
m into this matrix. |
AxisAngle4d |
AxisAngle4d.set(Matrix4fc m)
Set this
AxisAngle4d to be equivalent to the rotational component
of the given Matrix4fc. |
Matrix3f |
Matrix3f.set(Matrix4fc mat)
Set the elements of this matrix to the upper left 3x3 of the given
Matrix4fc. |
Matrix4d |
Matrix4d.set(Matrix4fc m)
Store the values of the given matrix
m into this matrix. |
FrustumIntersection |
FrustumIntersection.set(Matrix4fc m)
|
Matrix4x3f |
Matrix4x3f.set(Matrix4fc m)
Store the values of the upper 4x3 submatrix of
m into this matrix. |
FrustumIntersection |
FrustumIntersection.set(Matrix4fc m,
boolean allowTestSpheres)
Update the stored frustum planes of
this FrustumIntersection with the given matrix and
allow to optimize the frustum plane extraction in the case when no intersection test is needed for spheres. |
Quaterniond |
Quaterniond.setFromNormalized(Matrix4fc mat)
Set this quaternion to be a representation of the rotational component of the given matrix.
|
Quaternionf |
Quaternionf.setFromNormalized(Matrix4fc mat)
Set this quaternion to be a representation of the rotational component of the given matrix.
|
Quaterniond |
Quaterniond.setFromUnnormalized(Matrix4fc mat)
Set this quaternion to be a representation of the rotational component of the given matrix.
|
Quaternionf |
Quaternionf.setFromUnnormalized(Matrix4fc mat)
Set this quaternion to be a representation of the rotational component of the given matrix.
|
Matrix4f |
Matrix4fc.shadow(float lightX,
float lightY,
float lightZ,
float lightW,
Matrix4fc planeTransform,
Matrix4f dest)
Apply a projection transformation to this matrix that projects onto the plane with the general plane equation
y = 0 as if casting a shadow from a given light position/direction (lightX, lightY, lightZ, lightW)
and store the result in dest. |
Matrix4f |
Matrix4f.shadow(float lightX,
float lightY,
float lightZ,
float lightW,
Matrix4fc planeTransform,
Matrix4f dest) |
Matrix4f |
Matrix4fc.shadow(Vector4f light,
Matrix4fc planeTransform,
Matrix4f dest)
Apply a projection transformation to this matrix that projects onto the plane with the general plane equation
y = 0 as if casting a shadow from a given light position/direction light
and store the result in dest. |
Matrix4f |
Matrix4f.shadow(Vector4f light,
Matrix4fc planeTransform,
Matrix4f dest) |
Matrix4f |
Matrix4f.sub(Matrix4fc subtrahend)
Component-wise subtract
subtrahend from this. |
Matrix4f |
Matrix4fc.sub(Matrix4fc subtrahend,
Matrix4f dest)
Component-wise subtract
subtrahend from this and store the result in dest. |
Matrix4f |
Matrix4f.sub(Matrix4fc subtrahend,
Matrix4f dest) |
Matrix4f |
Matrix4fc.sub4x3(Matrix4fc subtrahend,
Matrix4f dest)
Component-wise subtract the upper 4x3 submatrices of
subtrahend from this
and store the result in dest. |
Matrix4f |
Matrix4f.sub4x3(Matrix4fc subtrahend,
Matrix4f dest) |
| Constructor and Description |
|---|
FrustumIntersection(Matrix4fc m)
Create a new
FrustumIntersection from the given matrix by extracing the matrix's frustum planes. |
FrustumIntersection(Matrix4fc m,
boolean allowTestSpheres)
Create a new
FrustumIntersection from the given matrix by extracing the matrix's frustum planes. |
FrustumRayBuilder(Matrix4fc m)
Create a new
FrustumRayBuilder from the given matrix by extracing the matrix's frustum. |
Matrix3d(Matrix4fc mat)
|
Matrix3f(Matrix4fc mat)
|
Matrix4d(Matrix4fc mat)
Create a new
Matrix4d and make it a copy of the given matrix. |
Matrix4f(Matrix4fc mat)
Create a new
Matrix4f and make it a copy of the given matrix. |
Copyright © 2015–2019 JOML. All rights reserved.