| Package | Description |
|---|---|
| org.joml |
Contains all classes of JOML.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Vector4f
Contains the definition of a Vector comprising 4 floats and associated
transformations.
|
| Modifier and Type | Method and Description |
|---|---|
Vector4d |
Vector4d.add(Vector4fc v)
Add the supplied vector to this one.
|
Vector4f |
Vector4f.add(Vector4fc v)
Add the supplied vector to this one.
|
Vector4d |
Vector4dc.add(Vector4fc v,
Vector4d dest)
Add the supplied vector to this one and store the result in
dest. |
Vector4d |
Vector4d.add(Vector4fc v,
Vector4d dest) |
Vector4f |
Vector4fc.add(Vector4fc v,
Vector4f dest)
Add the supplied vector to this one and store the result in
dest. |
Vector4f |
Vector4f.add(Vector4fc v,
Vector4f dest) |
float |
Vector4fc.angle(Vector4fc v)
Return the angle between this vector and the supplied vector.
|
float |
Vector4f.angle(Vector4fc v) |
float |
Vector4fc.angleCos(Vector4fc v)
Return the cosine of the angle between this vector and the supplied vector.
|
float |
Vector4f.angleCos(Vector4fc v) |
float |
Vector4fc.distance(Vector4fc v)
Return the distance between this Vector and
v. |
float |
Vector4f.distance(Vector4fc v) |
float |
Vector4fc.distanceSquared(Vector4fc v)
Return the square of the distance between this vector and
v. |
float |
Vector4f.distanceSquared(Vector4fc v) |
Vector4f |
Vector4f.div(Vector4fc v)
Divide this Vector4f component-wise by another Vector4f.
|
Vector4f |
Vector4fc.div(Vector4fc v,
Vector4f dest)
Divide this Vector4f component-wise by another Vector4f and store the result in
dest. |
Vector4f |
Vector4f.div(Vector4fc v,
Vector4f dest) |
float |
Vector4fc.dot(Vector4fc v)
Compute the dot product (inner product) of this vector and
v
. |
float |
Vector4f.dot(Vector4fc v) |
boolean |
Vector4fc.equals(Vector4fc v,
float delta)
Compare the vector components of
this vector with the given vector using the given delta
and return whether all of them are equal within a maximum difference of delta. |
boolean |
Vector4f.equals(Vector4fc v,
float delta) |
Vector4f |
Vector4f.fma(float a,
Vector4fc b)
Add the component-wise multiplication of
a * b to this vector. |
Vector4f |
Vector4fc.fma(float a,
Vector4fc b,
Vector4f dest)
Add the component-wise multiplication of
a * b to this vector
and store the result in dest. |
Vector4f |
Vector4f.fma(float a,
Vector4fc b,
Vector4f dest) |
Vector4f |
Vector4f.fma(Vector4fc a,
Vector4fc b)
Add the component-wise multiplication of
a * b to this vector. |
Vector4f |
Vector4fc.fma(Vector4fc a,
Vector4fc b,
Vector4f dest)
Add the component-wise multiplication of
a * b to this vector
and store the result in dest. |
Vector4f |
Vector4f.fma(Vector4fc a,
Vector4fc b,
Vector4f dest) |
Vector4f |
Vector4fc.hermite(Vector4fc t0,
Vector4fc v1,
Vector4fc t1,
float t,
Vector4f dest)
Compute a hermite interpolation between
this vector and its
associated tangent t0 and the given vector v
with its tangent t1 and store the result in
dest. |
Vector4f |
Vector4f.hermite(Vector4fc t0,
Vector4fc v1,
Vector4fc t1,
float t,
Vector4f dest) |
Vector4f |
Vector4f.lerp(Vector4fc other,
float t)
Linearly interpolate
this and other using the given interpolation factor t
and store the result in this. |
Vector4f |
Vector4fc.lerp(Vector4fc other,
float t,
Vector4f dest)
Linearly interpolate
this and other using the given interpolation factor t
and store the result in dest. |
Vector4f |
Vector4f.lerp(Vector4fc other,
float t,
Vector4f dest) |
Vector4f |
Vector4f.max(Vector4fc v)
Set the components of this vector to be the component-wise maximum of this and the other vector.
|
Vector4f |
Vector4fc.max(Vector4fc v,
Vector4f dest)
Set the components of
dest to be the component-wise maximum of this and the other vector. |
Vector4f |
Vector4f.max(Vector4fc v,
Vector4f dest) |
Vector4f |
Vector4f.min(Vector4fc v)
Set the components of this vector to be the component-wise minimum of this and the other vector.
|
Vector4f |
Vector4fc.min(Vector4fc v,
Vector4f dest)
Set the components of
dest to be the component-wise minimum of this and the other vector. |
Vector4f |
Vector4f.min(Vector4fc v,
Vector4f dest) |
Vector4d |
Vector4d.mul(Vector4fc v)
|
Vector4f |
Vector4f.mul(Vector4fc v)
Multiply this Vector4f component-wise by another Vector4f.
|
Vector4d |
Vector4dc.mul(Vector4fc v,
Vector4d dest)
|
Vector4d |
Vector4d.mul(Vector4fc v,
Vector4d dest) |
Vector4f |
Vector4fc.mul(Vector4fc v,
Vector4f dest)
Multiply this Vector4f component-wise by another Vector4f and store the result in
dest. |
Vector4f |
Vector4f.mul(Vector4fc v,
Vector4f dest) |
Vector4d |
Vector4d.set(Vector4fc v)
Set this
Vector4d to the values of the given v. |
Vector4f |
Vector4f.set(Vector4fc v)
Set this
Vector4f to the values of the given v. |
Matrix4f |
Matrix4f.set(Vector4fc col0,
Vector4fc col1,
Vector4fc col2,
Vector4fc col3)
Set the four columns of this matrix to the supplied vectors, respectively.
|
Matrix4f |
Matrix4f.setColumn(int column,
Vector4fc src)
Set the column at the given
column index, starting with 0. |
Matrix4f |
Matrix4f.setRow(int row,
Vector4fc src)
Set the row at the given
row index, starting with 0. |
Matrix4x3f |
Matrix4x3f.setRow(int row,
Vector4fc src)
Set the row at the given
row index, starting with 0. |
Matrix4x3f |
Matrix4x3f.shadow(Vector4fc light,
float a,
float b,
float c,
float d)
Apply a projection transformation to this matrix that projects onto the plane specified via the general plane equation
x*a + y*b + z*c + d = 0 as if casting a shadow from a given light position/direction light. |
Matrix4x3f |
Matrix4x3fc.shadow(Vector4fc light,
float a,
float b,
float c,
float d,
Matrix4x3f dest)
Apply a projection transformation to this matrix that projects onto the plane specified via the general plane equation
x*a + y*b + z*c + d = 0 as if casting a shadow from a given light position/direction light
and store the result in dest. |
Matrix4x3f |
Matrix4x3f.shadow(Vector4fc light,
float a,
float b,
float c,
float d,
Matrix4x3f dest) |
Matrix4x3f |
Matrix4x3f.shadow(Vector4fc light,
Matrix4x3fc planeTransform)
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. |
Matrix4x3f |
Matrix4x3fc.shadow(Vector4fc light,
Matrix4x3fc planeTransform,
Matrix4x3f 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. |
Matrix4x3f |
Matrix4x3f.shadow(Vector4fc light,
Matrix4x3fc planeTransform,
Matrix4x3f dest) |
Vector4f |
Vector4fc.smoothStep(Vector4fc v,
float t,
Vector4f dest)
Compute a smooth-step (i.e.
|
Vector4f |
Vector4f.smoothStep(Vector4fc v,
float t,
Vector4f dest) |
Vector4d |
Vector4d.sub(Vector4fc v)
Subtract the supplied vector from this one.
|
Vector4f |
Vector4f.sub(Vector4fc v)
Subtract the supplied vector from this one.
|
Vector4d |
Vector4dc.sub(Vector4fc v,
Vector4d dest)
Subtract the supplied vector from this one and store the result in
dest. |
Vector4d |
Vector4d.sub(Vector4fc v,
Vector4d dest)
Subtract the supplied vector from this one and store the result in
dest. |
Vector4f |
Vector4fc.sub(Vector4fc v,
Vector4f dest)
Subtract the supplied vector from this one and store the result in
dest. |
Vector4f |
Vector4f.sub(Vector4fc v,
Vector4f dest) |
Vector4f |
Matrix4fc.transform(Vector4fc v,
Vector4f dest)
Transform/multiply the given vector by this matrix and store the result in
dest. |
Vector4f |
Quaternionfc.transform(Vector4fc vec,
Vector4f dest)
Transform the given vector by this quaternion and store the result in
dest. |
Vector4f |
AxisAngle4f.transform(Vector4fc v,
Vector4f dest)
Transform the given vector by the rotation transformation described by this
AxisAngle4f
and store the result in dest. |
Vector4f |
Matrix4f.transform(Vector4fc v,
Vector4f dest) |
Vector4f |
Matrix4x3fc.transform(Vector4fc v,
Vector4f dest)
Transform/multiply the given vector by this matrix and store the result in
dest. |
Vector4f |
Matrix4x3f.transform(Vector4fc v,
Vector4f dest) |
Vector4f |
Quaternionf.transform(Vector4fc vec,
Vector4f dest) |
Vector4f |
Matrix4fc.transformAffine(Vector4fc v,
Vector4f dest)
Transform/multiply the given 4D-vector by assuming that
this matrix represents an affine transformation
(i.e. |
Vector4f |
Matrix4f.transformAffine(Vector4fc v,
Vector4f dest) |
Vector4f |
Matrix4fc.transformProject(Vector4fc v,
Vector4f dest)
Transform/multiply the given vector by this matrix, perform perspective divide and store the result in
dest. |
Vector4f |
Matrix4f.transformProject(Vector4fc v,
Vector4f dest) |
| Constructor and Description |
|---|
Matrix4f(Vector4fc col0,
Vector4fc col1,
Vector4fc col2,
Vector4fc col3)
Create a new
Matrix4f and initialize its four columns using the supplied vectors. |
Vector4d(Vector4fc v)
Create a new
Vector4d with the same values as v. |
Vector4f(Vector4fc v)
Create a new
Vector4f with the same values as v. |
Copyright © 2015–2019 JOML. All rights reserved.