Uses of Class
org.joml.Vector4f
-
Packages that use Vector4f Package Description org.joml Contains all classes of JOML.org.joml.internal Contains internal classes. -
-
Uses of Vector4f in org.joml
Methods in org.joml that return Vector4f Modifier and Type Method Description Vector4fVector4f. add(float x, float y, float z, float w)Increment the components of this vector by the given values.Vector4fVector4f. add(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. add(Vector4fc v)Add the supplied vector to this one.Vector4fVector4f. add(Vector4fc v, Vector4f dest)Vector4fVector4fc. add(float x, float y, float z, float w, Vector4f dest)Increment the components of this vector by the given values and store the result indest.Vector4fVector4fc. add(Vector4fc v, Vector4f dest)Add the supplied vector to this one and store the result indest.Vector4fVector4f. ceil()Set each component of this vector to the smallest (closest to negative infinity)floatvalue that is greater than or equal to that component and is equal to a mathematical integer.Vector4fVector4f. ceil(Vector4f dest)Vector4fVector4fc. ceil(Vector4f dest)Compute for each component of this vector the smallest (closest to negative infinity)floatvalue that is greater than or equal to that component and is equal to a mathematical integer and store the result indest.Vector4fVector4f. div(float scalar)Divide all components of thisVector4fby the given scalar value.Vector4fVector4f. div(float x, float y, float z, float w)Divide the components of this Vector4f by the given scalar values and store the result inthis.Vector4fVector4f. div(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. div(float scalar, Vector4f dest)Vector4fVector4f. div(Vector4fc v)Divide this Vector4f component-wise by another Vector4f.Vector4fVector4f. div(Vector4fc v, Vector4f dest)Vector4fVector4fc. div(float x, float y, float z, float w, Vector4f dest)Divide the components of this Vector4f by the given scalar values and store the result indest.Vector4fVector4fc. div(float scalar, Vector4f dest)Divide all components of thisVector4fby the given scalar value and store the result indest.Vector4fVector4fc. div(Vector4fc v, Vector4f dest)Divide this Vector4f component-wise by another Vector4f and store the result indest.static Vector4fPlanef. equationFromPoints(float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, Vector4f dest)Compute the factorsa,b,canddin the plane equationa*x + b*y + c*z + d = 0from the three points(v0X, v0Y, v0Z),(v1X, v1Y, v1Z)and(v2X, v2Y, v2Z)on the plane, and write the values to thex,y,zandwcomponents, respectively, of the givendestvector.static Vector4fPlanef. equationFromPoints(Vector3f v0, Vector3f v1, Vector3f v2, Vector4f dest)Compute the factorsa,b,canddin the plane equationa*x + b*y + c*z + d = 0from the given three points on the plane, and write the values to thex,y,zandwcomponents, respectively, of the givendestvector.Vector4fVector4f. floor()Set each component of this vector to the largest (closest to positive infinity)floatvalue that is less than or equal to that component and is equal to a mathematical integer.Vector4fVector4f. floor(Vector4f dest)Vector4fVector4fc. floor(Vector4f dest)Compute for each component of this vector the largest (closest to positive infinity)floatvalue that is less than or equal to that component and is equal to a mathematical integer and store the result indest.Vector4fVector4f. fma(float a, Vector4fc b)Add the component-wise multiplication ofa * bto this vector.Vector4fVector4f. fma(float a, Vector4fc b, Vector4f dest)Vector4fVector4f. fma(Vector4fc a, Vector4fc b)Add the component-wise multiplication ofa * bto this vector.Vector4fVector4f. fma(Vector4fc a, Vector4fc b, Vector4f dest)Vector4fVector4fc. fma(float a, Vector4fc b, Vector4f dest)Add the component-wise multiplication ofa * bto this vector and store the result indest.Vector4fVector4fc. fma(Vector4fc a, Vector4fc b, Vector4f dest)Add the component-wise multiplication ofa * bto this vector and store the result indest.Vector4fMatrix4f. frustumPlane(int plane, Vector4f planeEquation)Vector4fMatrix4fc. frustumPlane(int plane, Vector4f planeEquation)Calculate a frustum plane ofthismatrix, which can be a projection matrix or a combined modelview-projection matrix, and store the result in the givenplaneEquation.Vector4fVector4d. get(Vector4f dest)Vector4fVector4dc. get(Vector4f dest)Set the components of the given vectordestto those ofthisvector.Vector4fVector4f. get(Vector4f dest)Vector4fVector4fc. get(Vector4f dest)Set the components of the given vectordestto those ofthisvector.Vector4fMatrix4f. getColumn(int column, Vector4f dest)Vector4fMatrix4fc. getColumn(int column, Vector4f dest)Get the column at the givencolumnindex, starting with0.Vector4fMatrix4f. getRow(int row, Vector4f dest)Vector4fMatrix4fc. getRow(int row, Vector4f dest)Get the row at the givenrowindex, starting with0.Vector4fMatrix4x3f. getRow(int row, Vector4f dest)Vector4fMatrix4x3fc. getRow(int row, Vector4f dest)Get the row at the givenrowindex, starting with0.Vector4fVector4f. hermite(Vector4fc t0, Vector4fc v1, Vector4fc t1, float t, Vector4f dest)Vector4fVector4fc. hermite(Vector4fc t0, Vector4fc v1, Vector4fc t1, float t, Vector4f dest)Compute a hermite interpolation betweenthisvector and its associated tangentt0and the given vectorvwith its tangentt1and store the result indest.Vector4fVector4f. lerp(Vector4fc other, float t)Linearly interpolatethisandotherusing the given interpolation factortand store the result inthis.Vector4fVector4f. lerp(Vector4fc other, float t, Vector4f dest)Vector4fVector4fc. lerp(Vector4fc other, float t, Vector4f dest)Linearly interpolatethisandotherusing the given interpolation factortand store the result indest.Vector4fVector4f. max(Vector4fc v)Set the components of this vector to be the component-wise maximum of this and the other vector.Vector4fVector4f. max(Vector4fc v, Vector4f dest)Vector4fVector4fc. max(Vector4fc v, Vector4f dest)Set the components ofdestto be the component-wise maximum of this and the other vector.Vector4fVector4f. min(Vector4fc v)Set the components of this vector to be the component-wise minimum of this and the other vector.Vector4fVector4f. min(Vector4fc v, Vector4f dest)Vector4fVector4fc. min(Vector4fc v, Vector4f dest)Set the components ofdestto be the component-wise minimum of this and the other vector.Vector4fVector4f. mul(float scalar)Multiply all components of thisVector4fby the given scalar value.Vector4fVector4f. mul(float x, float y, float z, float w)Multiply the components of this Vector4f by the given scalar values and store the result inthis.Vector4fVector4f. mul(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. mul(float scalar, Vector4f dest)Vector4fVector4f. mul(Matrix4fc mat)Multiply the given matrix mat with this Vector4f and store the result inthis.Vector4fVector4f. mul(Matrix4fc mat, Vector4f dest)Vector4fVector4f. mul(Matrix4x3fc mat)Multiply the given matrix mat with this Vector4f and store the result inthis.Vector4fVector4f. mul(Matrix4x3fc mat, Vector4f dest)Vector4fVector4f. mul(Vector4fc v)Multiply this Vector4f component-wise by another Vector4f.Vector4fVector4f. mul(Vector4fc v, Vector4f dest)Vector4fVector4fc. mul(float x, float y, float z, float w, Vector4f dest)Multiply the components of this Vector4f by the given scalar values and store the result indest.Vector4fVector4fc. mul(float scalar, Vector4f dest)Multiply all components of thisVector4fby the given scalar value and store the result indest.Vector4fVector4fc. mul(Matrix4fc mat, Vector4f dest)Multiply the given matrix mat with this Vector4f and store the result indest.Vector4fVector4fc. mul(Matrix4x3fc mat, Vector4f dest)Multiply the given matrix mat with this Vector4f and store the result indest.Vector4fVector4fc. mul(Vector4fc v, Vector4f dest)Multiply this Vector4f component-wise by another Vector4f and store the result indest.Vector4fVector4f. mulAffine(Matrix4fc mat, Vector4f dest)Vector4fVector4fc. mulAffine(Matrix4fc mat, Vector4f dest)Multiply the given affine matrix mat with this Vector4f and store the result indest.Vector4fVector4f. mulProject(Matrix4fc mat)Multiply the given matrixmatwith this Vector4f, perform perspective division.Vector4fVector4f. mulProject(Matrix4fc mat, Vector4f dest)Vector4fVector4fc. mulProject(Matrix4fc mat, Vector4f dest)Multiply the given matrixmatwith this Vector4f, perform perspective division and store the result indest.Vector4fVector4f. negate()Negate this vector.Vector4fVector4f. negate(Vector4f dest)Vector4fVector4fc. negate(Vector4f dest)Negate this vector and store the result indest.Vector4fVector4f. normalize()Normalizes this vector.Vector4fVector4f. normalize(float length)Scale this vector to have the given length.Vector4fVector4f. normalize(float length, Vector4f dest)Vector4fVector4f. normalize(Vector4f dest)Vector4fVector4fc. normalize(float length, Vector4f dest)Scale this vector to have the given length and store the result indest.Vector4fVector4fc. normalize(Vector4f dest)Normalizes this vector and store the result indest.Vector4fVector4f. normalize3()Normalize this vector by computing only the norm of(x, y, z).Vector4fVector4f. normalize3(Vector4f dest)Vector4fVector4fc. normalize3(Vector4f dest)Normalize this vector by computing only the norm of(x, y, z)and store the result indest.Vector4fMatrix4f. project(float x, float y, float z, int[] viewport, Vector4f winCoordsDest)Vector4fMatrix4f. project(Vector3fc position, int[] viewport, Vector4f winCoordsDest)Vector4fMatrix4fc. project(float x, float y, float z, int[] viewport, Vector4f winCoordsDest)Project the given(x, y, z)position viathismatrix using the specified viewport and store the resulting window coordinates inwinCoordsDest.Vector4fMatrix4fc. project(Vector3fc position, int[] viewport, Vector4f winCoordsDest)Project the givenpositionviathismatrix using the specified viewport and store the resulting window coordinates inwinCoordsDest.Vector4fVector4f. rotate(Quaternionfc quat)Rotate this vector by the given quaternionquatand store the result inthis.Vector4fVector4f. rotate(Quaternionfc quat, Vector4f dest)Vector4fVector4fc. rotate(Quaternionfc quat, Vector4f dest)Rotate this vector by the given quaternionquatand store the result indest.Vector4fVector4f. rotateAbout(float angle, float x, float y, float z)Rotate this vector the specified radians around the given rotation axis.Vector4fVector4f. rotateAxis(float angle, float aX, float aY, float aZ, Vector4f dest)Vector4fVector4fc. rotateAxis(float angle, float aX, float aY, float aZ, Vector4f dest)Rotate this vector the specified radians around the given rotation axis and store the result intodest.Vector4fVector4f. rotateX(float angle)Rotate this vector the specified radians around the X axis.Vector4fVector4f. rotateX(float angle, Vector4f dest)Vector4fVector4fc. rotateX(float angle, Vector4f dest)Rotate this vector the specified radians around the X axis and store the result intodest.Vector4fVector4f. rotateY(float angle)Rotate this vector the specified radians around the Y axis.Vector4fVector4f. rotateY(float angle, Vector4f dest)Vector4fVector4fc. rotateY(float angle, Vector4f dest)Rotate this vector the specified radians around the Y axis and store the result intodest.Vector4fVector4f. rotateZ(float angle)Rotate this vector the specified radians around the Z axis.Vector4fVector4f. rotateZ(float angle, Vector4f dest)Vector4fVector4fc. rotateZ(float angle, Vector4f dest)Rotate this vector the specified radians around the Z axis and store the result intodest.Vector4fVector4f. round()Set each component of this vector to the closest float that is equal to a mathematical integer, with ties rounding to positive infinity.Vector4fVector4f. round(Vector4f dest)Vector4fVector4fc. round(Vector4f dest)Compute for each component of this vector the closest float that is equal to a mathematical integer, with ties rounding to positive infinity and store the result indest.Vector4fVector4f. set(double d)Set the x, y, z, and w components to the supplied value.Vector4fVector4f. set(double x, double y, double z, double w)Set the x, y, z, and w components to the supplied values.Vector4fVector4f. set(float d)Set the x, y, z, and w components to the supplied value.Vector4fVector4f. set(float x, float y, float z, float w)Set the x, y, z, and w components to the supplied values.Vector4fVector4f. set(int index, ByteBuffer buffer)Read this vector from the suppliedByteBufferstarting at the specified absolute buffer position/index.Vector4fVector4f. set(int index, FloatBuffer buffer)Read this vector from the suppliedFloatBufferstarting at the specified absolute buffer position/index.Vector4fVector4f. set(ByteBuffer buffer)Read this vector from the suppliedByteBufferat the current bufferposition.Vector4fVector4f. set(FloatBuffer buffer)Read this vector from the suppliedFloatBufferat the current bufferposition.Vector4fVector4f. set(Vector2fc v, float z, float w)Sets the first two components of this to the components of givenvand last two components to the givenz, andw.Vector4fVector4f. set(Vector2ic v, float z, float w)Sets the first two components of this to the components of givenvand last two components to the givenz, andw.Vector4fVector4f. set(Vector3fc v, float w)Set the first three components of this to the components ofvand the last component tow.Vector4fVector4f. set(Vector3ic v, float w)Set the first three components of this to the components ofvand the last component tow.Vector4fVector4f. set(Vector4dc v)Set thisVector4fto the values of the givenv.Vector4fVector4f. set(Vector4fc v)Set thisVector4fto the values of the givenv.Vector4fVector4f. set(Vector4ic v)Set thisVector4fto the values of the givenv.Vector4fVector4f. setComponent(int component, float value)Set the value of the specified component of this vector.Vector4fVector4f. smoothStep(Vector4fc v, float t, Vector4f dest)Vector4fVector4fc. smoothStep(Vector4fc v, float t, Vector4f dest)Compute a smooth-step (i.e.Vector4fVector4f. sub(float x, float y, float z, float w)Subtract(x, y, z, w)from this.Vector4fVector4f. sub(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. sub(Vector4fc v)Subtract the supplied vector from this one.Vector4fVector4f. sub(Vector4fc v, Vector4f dest)Vector4fVector4fc. sub(float x, float y, float z, float w, Vector4f dest)Subtract(x, y, z, w)from this and store the result indest.Vector4fVector4fc. sub(Vector4fc v, Vector4f dest)Subtract the supplied vector from this one and store the result indest.Vector4fAxisAngle4f. transform(Vector4f v)Transform the given vector by the rotation transformation described by thisAxisAngle4f.Vector4fAxisAngle4f. transform(Vector4fc v, Vector4f dest)Transform the given vector by the rotation transformation described by thisAxisAngle4fand store the result indest.Vector4fMatrix4f. transform(float x, float y, float z, float w, Vector4f dest)Vector4fMatrix4f. transform(Vector4f v)Vector4fMatrix4f. transform(Vector4fc v, Vector4f dest)Vector4fMatrix4fc. transform(float x, float y, float z, float w, Vector4f dest)Transform/multiply the vector(x, y, z, w)by this matrix and store the result indest.Vector4fMatrix4fc. transform(Vector4f v)Transform/multiply the given vector by this matrix and store the result in that vector.Vector4fMatrix4fc. transform(Vector4fc v, Vector4f dest)Transform/multiply the given vector by this matrix and store the result indest.Vector4fMatrix4x3f. transform(Vector4f v)Vector4fMatrix4x3f. transform(Vector4fc v, Vector4f dest)Vector4fMatrix4x3fc. transform(Vector4f v)Transform/multiply the given vector by this matrix and store the result in that vector.Vector4fMatrix4x3fc. transform(Vector4fc v, Vector4f dest)Transform/multiply the given vector by this matrix and store the result indest.Vector4fQuaterniond. transform(double x, double y, double z, Vector4f dest)Vector4fQuaterniond. transform(Vector4f vec)Vector4fQuaterniond. transform(Vector4fc vec, Vector4f dest)Vector4fQuaterniondc. transform(double x, double y, double z, Vector4f dest)Transform the given vector(x, y, z)by this quaternion and store the result indest.Vector4fQuaterniondc. transform(Vector4f vec)Transform the given vector by this quaternion.Vector4fQuaterniondc. transform(Vector4fc vec, Vector4f dest)Transform the given vector by this quaternion and store the result indest.Vector4fQuaternionf. transform(float x, float y, float z, Vector4f dest)Vector4fQuaternionf. transform(Vector4f vec)Vector4fQuaternionf. transform(Vector4fc vec, Vector4f dest)Vector4fQuaternionfc. transform(float x, float y, float z, Vector4f dest)Transform the given vector(x, y, z)by this quaternion and store the result indest.Vector4fQuaternionfc. transform(Vector4f vec)Transform the given vector by this quaternion.Vector4fQuaternionfc. transform(Vector4fc vec, Vector4f dest)Transform the given vector by this quaternion and store the result indest.Vector4fMatrix4f. transformAffine(float x, float y, float z, float w, Vector4f dest)Vector4fMatrix4f. transformAffine(Vector4f v)Vector4fMatrix4f. transformAffine(Vector4fc v, Vector4f dest)Vector4fMatrix4fc. transformAffine(float x, float y, float z, float w, Vector4f dest)Transform/multiply the 4D-vector(x, y, z, w)by assuming thatthismatrix represents anaffinetransformation (i.e.Vector4fMatrix4fc. transformAffine(Vector4f v)Transform/multiply the given 4D-vector by assuming thatthismatrix represents anaffinetransformation (i.e.Vector4fMatrix4fc. transformAffine(Vector4fc v, Vector4f dest)Transform/multiply the given 4D-vector by assuming thatthismatrix represents anaffinetransformation (i.e.Vector4fQuaterniond. transformPositiveX(Vector4f dest)Vector4fQuaterniondc. transformPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this quaternion.Vector4fQuaternionf. transformPositiveX(Vector4f dest)Vector4fQuaternionfc. transformPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this quaternion.Vector4fQuaterniond. transformPositiveY(Vector4f dest)Vector4fQuaterniondc. transformPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this quaternion.Vector4fQuaternionf. transformPositiveY(Vector4f dest)Vector4fQuaternionfc. transformPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this quaternion.Vector4fQuaterniond. transformPositiveZ(Vector4f dest)Vector4fQuaterniondc. transformPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this quaternion.Vector4fQuaternionf. transformPositiveZ(Vector4f dest)Vector4fQuaternionfc. transformPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this quaternion.Vector4fMatrix4f. transformProject(float x, float y, float z, float w, Vector4f dest)Vector4fMatrix4f. transformProject(Vector4f v)Vector4fMatrix4f. transformProject(Vector4fc v, Vector4f dest)Vector4fMatrix4fc. transformProject(float x, float y, float z, float w, Vector4f dest)Transform/multiply the vector(x, y, z, w)by this matrix, perform perspective divide and store the result indest.Vector4fMatrix4fc. transformProject(Vector4f v)Transform/multiply the given vector by this matrix, perform perspective divide and store the result in that vector.Vector4fMatrix4fc. transformProject(Vector4fc v, Vector4f dest)Transform/multiply the given vector by this matrix, perform perspective divide and store the result indest.Vector4fQuaterniond. transformUnitPositiveX(Vector4f dest)Vector4fQuaterniondc. transformUnitPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this unit quaternion.Vector4fQuaternionf. transformUnitPositiveX(Vector4f dest)Vector4fQuaternionfc. transformUnitPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this unit quaternion.Vector4fQuaterniond. transformUnitPositiveY(Vector4f dest)Vector4fQuaterniondc. transformUnitPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this unit quaternion.Vector4fQuaternionf. transformUnitPositiveY(Vector4f dest)Vector4fQuaternionfc. transformUnitPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this unit quaternion.Vector4fQuaterniond. transformUnitPositiveZ(Vector4f dest)Vector4fQuaterniondc. transformUnitPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this unit quaternion.Vector4fQuaternionf. transformUnitPositiveZ(Vector4f dest)Vector4fQuaternionfc. transformUnitPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this unit quaternion.Vector4fMatrix4f. unproject(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Vector4fMatrix4f. unproject(Vector3fc winCoords, int[] viewport, Vector4f dest)Vector4fMatrix4fc. unproject(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Unproject the given window coordinates(winX, winY, winZ)bythismatrix using the specified viewport.Vector4fMatrix4fc. unproject(Vector3fc winCoords, int[] viewport, Vector4f dest)Unproject the given window coordinateswinCoordsbythismatrix using the specified viewport.Vector4fMatrix4f. unprojectInv(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Vector4fMatrix4f. unprojectInv(Vector3fc winCoords, int[] viewport, Vector4f dest)Vector4fMatrix4fc. unprojectInv(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Unproject the given window coordinates(winX, winY, winZ)bythismatrix using the specified viewport.Vector4fMatrix4fc. unprojectInv(Vector3fc winCoords, int[] viewport, Vector4f dest)Unproject the given window coordinateswinCoordsbythismatrix using the specified viewport.Vector4fVector4f. zero()Set all components to zero.Methods in org.joml with parameters of type Vector4f Modifier and Type Method Description Vector4fVector4f. add(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. add(Vector4fc v, Vector4f dest)Vector4fVector4fc. add(float x, float y, float z, float w, Vector4f dest)Increment the components of this vector by the given values and store the result indest.Vector4fVector4fc. add(Vector4fc v, Vector4f dest)Add the supplied vector to this one and store the result indest.Vector4fVector4f. ceil(Vector4f dest)Vector4fVector4fc. ceil(Vector4f dest)Compute for each component of this vector the smallest (closest to negative infinity)floatvalue that is greater than or equal to that component and is equal to a mathematical integer and store the result indest.Vector4fVector4f. div(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. div(float scalar, Vector4f dest)Vector4fVector4f. div(Vector4fc v, Vector4f dest)Vector4fVector4fc. div(float x, float y, float z, float w, Vector4f dest)Divide the components of this Vector4f by the given scalar values and store the result indest.Vector4fVector4fc. div(float scalar, Vector4f dest)Divide all components of thisVector4fby the given scalar value and store the result indest.Vector4fVector4fc. div(Vector4fc v, Vector4f dest)Divide this Vector4f component-wise by another Vector4f and store the result indest.static Vector4fPlanef. equationFromPoints(float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, Vector4f dest)Compute the factorsa,b,canddin the plane equationa*x + b*y + c*z + d = 0from the three points(v0X, v0Y, v0Z),(v1X, v1Y, v1Z)and(v2X, v2Y, v2Z)on the plane, and write the values to thex,y,zandwcomponents, respectively, of the givendestvector.static Vector4fPlanef. equationFromPoints(Vector3f v0, Vector3f v1, Vector3f v2, Vector4f dest)Compute the factorsa,b,canddin the plane equationa*x + b*y + c*z + d = 0from the given three points on the plane, and write the values to thex,y,zandwcomponents, respectively, of the givendestvector.Vector4fVector4f. floor(Vector4f dest)Vector4fVector4fc. floor(Vector4f dest)Compute for each component of this vector the largest (closest to positive infinity)floatvalue that is less than or equal to that component and is equal to a mathematical integer and store the result indest.Vector4fVector4f. fma(float a, Vector4fc b, Vector4f dest)Vector4fVector4f. fma(Vector4fc a, Vector4fc b, Vector4f dest)Vector4fVector4fc. fma(float a, Vector4fc b, Vector4f dest)Add the component-wise multiplication ofa * bto this vector and store the result indest.Vector4fVector4fc. fma(Vector4fc a, Vector4fc b, Vector4f dest)Add the component-wise multiplication ofa * bto this vector and store the result indest.Vector4fMatrix4f. frustumPlane(int plane, Vector4f planeEquation)Vector4fMatrix4fc. frustumPlane(int plane, Vector4f planeEquation)Calculate a frustum plane ofthismatrix, which can be a projection matrix or a combined modelview-projection matrix, and store the result in the givenplaneEquation.Vector4fVector4d. get(Vector4f dest)Vector4fVector4dc. get(Vector4f dest)Set the components of the given vectordestto those ofthisvector.Vector4fVector4f. get(Vector4f dest)Vector4fVector4fc. get(Vector4f dest)Set the components of the given vectordestto those ofthisvector.Vector4fMatrix4f. getColumn(int column, Vector4f dest)Vector4fMatrix4fc. getColumn(int column, Vector4f dest)Get the column at the givencolumnindex, starting with0.Vector4fMatrix4f. getRow(int row, Vector4f dest)Vector4fMatrix4fc. getRow(int row, Vector4f dest)Get the row at the givenrowindex, starting with0.Vector4fMatrix4x3f. getRow(int row, Vector4f dest)Vector4fMatrix4x3fc. getRow(int row, Vector4f dest)Get the row at the givenrowindex, starting with0.Vector4fVector4f. hermite(Vector4fc t0, Vector4fc v1, Vector4fc t1, float t, Vector4f dest)Vector4fVector4fc. hermite(Vector4fc t0, Vector4fc v1, Vector4fc t1, float t, Vector4f dest)Compute a hermite interpolation betweenthisvector and its associated tangentt0and the given vectorvwith its tangentt1and store the result indest.static booleanIntersectionf. intersectPlaneSphere(float a, float b, float c, float d, float centerX, float centerY, float centerZ, float radius, Vector4f intersectionCenterAndRadius)Test whether the plane with the general plane equation a*x + b*y + c*z + d = 0 intersects the sphere with center(centerX, centerY, centerZ)andradius, and store the center of the circle of intersection in the(x, y, z)components of the supplied vector and the radius of that circle in the w component.static booleanIntersectionf. intersectPlaneSweptSphere(float a, float b, float c, float d, float cX, float cY, float cZ, float radius, float vX, float vY, float vZ, Vector4f pointAndTime)Test whether the plane with the general plane equation a*x + b*y + c*z + d = 0 intersects the moving sphere with center(cX, cY, cZ),radiusand velocity(vX, vY, vZ), and store the point of intersection in the(x, y, z)components of the supplied vector and the time of intersection in the w component.static booleanIntersectionf. intersectSphereSphere(float aX, float aY, float aZ, float radiusSquaredA, float bX, float bY, float bZ, float radiusSquaredB, Vector4f centerAndRadiusOfIntersectionCircle)Test whether the one sphere with center(aX, aY, aZ)and square radiusradiusSquaredAintersects the other sphere with center(bX, bY, bZ)and square radiusradiusSquaredB, and store the center of the circle of intersection in the(x, y, z)components of the supplied vector and the radius of that circle in the w component.static booleanIntersectionf. intersectSphereSphere(Spheref sphereA, Spheref sphereB, Vector4f centerAndRadiusOfIntersectionCircle)Test whether the one sphere with intersects the other sphere, and store the center of the circle of intersection in the(x, y, z)components of the supplied vector and the radius of that circle in the w component.static booleanIntersectionf. intersectSphereSphere(Vector3fc centerA, float radiusSquaredA, Vector3fc centerB, float radiusSquaredB, Vector4f centerAndRadiusOfIntersectionCircle)Test whether the one sphere with centercenterAand square radiusradiusSquaredAintersects the other sphere with centercenterBand square radiusradiusSquaredB, and store the center of the circle of intersection in the(x, y, z)components of the supplied vector and the radius of that circle in the w component.static intIntersectionf. intersectSweptSphereTriangle(float centerX, float centerY, float centerZ, float radius, float velX, float velY, float velZ, float v0X, float v0Y, float v0Z, float v1X, float v1Y, float v1Z, float v2X, float v2Y, float v2Z, float epsilon, float maxT, Vector4f pointAndTime)Determine the point of intersection between a sphere with the given center(centerX, centerY, centerZ)andradiusmoving with the given velocity(velX, velY, velZ)and the triangle specified via its three vertices(v0X, v0Y, v0Z),(v1X, v1Y, v1Z),(v2X, v2Y, v2Z).Vector4fVector4f. lerp(Vector4fc other, float t, Vector4f dest)Vector4fVector4fc. lerp(Vector4fc other, float t, Vector4f dest)Linearly interpolatethisandotherusing the given interpolation factortand store the result indest.Vector4fVector4f. max(Vector4fc v, Vector4f dest)Vector4fVector4fc. max(Vector4fc v, Vector4f dest)Set the components ofdestto be the component-wise maximum of this and the other vector.Vector4fVector4f. min(Vector4fc v, Vector4f dest)Vector4fVector4fc. min(Vector4fc v, Vector4f dest)Set the components ofdestto be the component-wise minimum of this and the other vector.Vector4fVector4f. mul(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. mul(float scalar, Vector4f dest)Vector4fVector4f. mul(Matrix4fc mat, Vector4f dest)Vector4fVector4f. mul(Matrix4x3fc mat, Vector4f dest)Vector4fVector4f. mul(Vector4fc v, Vector4f dest)Vector4fVector4fc. mul(float x, float y, float z, float w, Vector4f dest)Multiply the components of this Vector4f by the given scalar values and store the result indest.Vector4fVector4fc. mul(float scalar, Vector4f dest)Multiply all components of thisVector4fby the given scalar value and store the result indest.Vector4fVector4fc. mul(Matrix4fc mat, Vector4f dest)Multiply the given matrix mat with this Vector4f and store the result indest.Vector4fVector4fc. mul(Matrix4x3fc mat, Vector4f dest)Multiply the given matrix mat with this Vector4f and store the result indest.Vector4fVector4fc. mul(Vector4fc v, Vector4f dest)Multiply this Vector4f component-wise by another Vector4f and store the result indest.Vector4fVector4f. mulAffine(Matrix4fc mat, Vector4f dest)Vector4fVector4fc. mulAffine(Matrix4fc mat, Vector4f dest)Multiply the given affine matrix mat with this Vector4f and store the result indest.Vector4fVector4f. mulProject(Matrix4fc mat, Vector4f dest)Vector4fVector4fc. mulProject(Matrix4fc mat, Vector4f dest)Multiply the given matrixmatwith this Vector4f, perform perspective division and store the result indest.Vector4fVector4f. negate(Vector4f dest)Vector4fVector4fc. negate(Vector4f dest)Negate this vector and store the result indest.Vector4fVector4f. normalize(float length, Vector4f dest)Vector4fVector4f. normalize(Vector4f dest)Vector4fVector4fc. normalize(float length, Vector4f dest)Scale this vector to have the given length and store the result indest.Vector4fVector4fc. normalize(Vector4f dest)Normalizes this vector and store the result indest.Vector4fVector4f. normalize3(Vector4f dest)Vector4fVector4fc. normalize3(Vector4f dest)Normalize this vector by computing only the norm of(x, y, z)and store the result indest.Vector4fMatrix4f. project(float x, float y, float z, int[] viewport, Vector4f winCoordsDest)Vector4fMatrix4f. project(Vector3fc position, int[] viewport, Vector4f winCoordsDest)Vector4fMatrix4fc. project(float x, float y, float z, int[] viewport, Vector4f winCoordsDest)Project the given(x, y, z)position viathismatrix using the specified viewport and store the resulting window coordinates inwinCoordsDest.Vector4fMatrix4fc. project(Vector3fc position, int[] viewport, Vector4f winCoordsDest)Project the givenpositionviathismatrix using the specified viewport and store the resulting window coordinates inwinCoordsDest.Vector4fVector4f. rotate(Quaternionfc quat, Vector4f dest)Vector4fVector4fc. rotate(Quaternionfc quat, Vector4f dest)Rotate this vector by the given quaternionquatand store the result indest.Vector4fVector4f. rotateAxis(float angle, float aX, float aY, float aZ, Vector4f dest)Vector4fVector4fc. rotateAxis(float angle, float aX, float aY, float aZ, Vector4f dest)Rotate this vector the specified radians around the given rotation axis and store the result intodest.Vector4fVector4f. rotateX(float angle, Vector4f dest)Vector4fVector4fc. rotateX(float angle, Vector4f dest)Rotate this vector the specified radians around the X axis and store the result intodest.Vector4fVector4f. rotateY(float angle, Vector4f dest)Vector4fVector4fc. rotateY(float angle, Vector4f dest)Rotate this vector the specified radians around the Y axis and store the result intodest.Vector4fVector4f. rotateZ(float angle, Vector4f dest)Vector4fVector4fc. rotateZ(float angle, Vector4f dest)Rotate this vector the specified radians around the Z axis and store the result intodest.Vector4fVector4f. round(Vector4f dest)Vector4fVector4fc. round(Vector4f dest)Compute for each component of this vector the closest float that is equal to a mathematical integer, with ties rounding to positive infinity and store the result indest.Matrix4fMatrix4f. shadow(Vector4f 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 equationx*a + y*b + z*c + d = 0as if casting a shadow from a given light position/directionlight.Matrix4fMatrix4f. shadow(Vector4f light, float a, float b, float c, float d, Matrix4f dest)Matrix4fMatrix4f. shadow(Vector4f light, Matrix4f planeTransform)Apply a projection transformation to this matrix that projects onto the plane with the general plane equationy = 0as if casting a shadow from a given light position/directionlight.Matrix4fMatrix4f. shadow(Vector4f light, Matrix4fc planeTransform, Matrix4f dest)Matrix4fMatrix4fc. shadow(Vector4f light, float a, float b, float c, float d, Matrix4f dest)Apply a projection transformation to this matrix that projects onto the plane specified via the general plane equationx*a + y*b + z*c + d = 0as if casting a shadow from a given light position/directionlightand store the result indest.Matrix4fMatrix4fc. shadow(Vector4f light, Matrix4fc planeTransform, Matrix4f dest)Apply a projection transformation to this matrix that projects onto the plane with the general plane equationy = 0as if casting a shadow from a given light position/directionlightand store the result indest.Vector4fVector4f. smoothStep(Vector4fc v, float t, Vector4f dest)Vector4fVector4fc. smoothStep(Vector4fc v, float t, Vector4f dest)Compute a smooth-step (i.e.Vector4fVector4f. sub(float x, float y, float z, float w, Vector4f dest)Vector4fVector4f. sub(Vector4fc v, Vector4f dest)Vector4fVector4fc. sub(float x, float y, float z, float w, Vector4f dest)Subtract(x, y, z, w)from this and store the result indest.Vector4fVector4fc. sub(Vector4fc v, Vector4f dest)Subtract the supplied vector from this one and store the result indest.Vector4fAxisAngle4f. transform(Vector4f v)Transform the given vector by the rotation transformation described by thisAxisAngle4f.Vector4fAxisAngle4f. transform(Vector4fc v, Vector4f dest)Transform the given vector by the rotation transformation described by thisAxisAngle4fand store the result indest.Vector4fMatrix4f. transform(float x, float y, float z, float w, Vector4f dest)Vector4fMatrix4f. transform(Vector4f v)Vector4fMatrix4f. transform(Vector4fc v, Vector4f dest)Vector4fMatrix4fc. transform(float x, float y, float z, float w, Vector4f dest)Transform/multiply the vector(x, y, z, w)by this matrix and store the result indest.Vector4fMatrix4fc. transform(Vector4f v)Transform/multiply the given vector by this matrix and store the result in that vector.Vector4fMatrix4fc. transform(Vector4fc v, Vector4f dest)Transform/multiply the given vector by this matrix and store the result indest.Vector4fMatrix4x3f. transform(Vector4f v)Vector4fMatrix4x3f. transform(Vector4fc v, Vector4f dest)Vector4fMatrix4x3fc. transform(Vector4f v)Transform/multiply the given vector by this matrix and store the result in that vector.Vector4fMatrix4x3fc. transform(Vector4fc v, Vector4f dest)Transform/multiply the given vector by this matrix and store the result indest.Vector4fQuaterniond. transform(double x, double y, double z, Vector4f dest)Vector4fQuaterniond. transform(Vector4f vec)Vector4fQuaterniond. transform(Vector4fc vec, Vector4f dest)Vector4fQuaterniondc. transform(double x, double y, double z, Vector4f dest)Transform the given vector(x, y, z)by this quaternion and store the result indest.Vector4fQuaterniondc. transform(Vector4f vec)Transform the given vector by this quaternion.Vector4fQuaterniondc. transform(Vector4fc vec, Vector4f dest)Transform the given vector by this quaternion and store the result indest.Vector4fQuaternionf. transform(float x, float y, float z, Vector4f dest)Vector4fQuaternionf. transform(Vector4f vec)Vector4fQuaternionf. transform(Vector4fc vec, Vector4f dest)Vector4fQuaternionfc. transform(float x, float y, float z, Vector4f dest)Transform the given vector(x, y, z)by this quaternion and store the result indest.Vector4fQuaternionfc. transform(Vector4f vec)Transform the given vector by this quaternion.Vector4fQuaternionfc. transform(Vector4fc vec, Vector4f dest)Transform the given vector by this quaternion and store the result indest.Vector4fMatrix4f. transformAffine(float x, float y, float z, float w, Vector4f dest)Vector4fMatrix4f. transformAffine(Vector4f v)Vector4fMatrix4f. transformAffine(Vector4fc v, Vector4f dest)Vector4fMatrix4fc. transformAffine(float x, float y, float z, float w, Vector4f dest)Transform/multiply the 4D-vector(x, y, z, w)by assuming thatthismatrix represents anaffinetransformation (i.e.Vector4fMatrix4fc. transformAffine(Vector4f v)Transform/multiply the given 4D-vector by assuming thatthismatrix represents anaffinetransformation (i.e.Vector4fMatrix4fc. transformAffine(Vector4fc v, Vector4f dest)Transform/multiply the given 4D-vector by assuming thatthismatrix represents anaffinetransformation (i.e.Vector4fQuaterniond. transformPositiveX(Vector4f dest)Vector4fQuaterniondc. transformPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this quaternion.Vector4fQuaternionf. transformPositiveX(Vector4f dest)Vector4fQuaternionfc. transformPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this quaternion.Vector4fQuaterniond. transformPositiveY(Vector4f dest)Vector4fQuaterniondc. transformPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this quaternion.Vector4fQuaternionf. transformPositiveY(Vector4f dest)Vector4fQuaternionfc. transformPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this quaternion.Vector4fQuaterniond. transformPositiveZ(Vector4f dest)Vector4fQuaterniondc. transformPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this quaternion.Vector4fQuaternionf. transformPositiveZ(Vector4f dest)Vector4fQuaternionfc. transformPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this quaternion.Vector4fMatrix4f. transformProject(float x, float y, float z, float w, Vector4f dest)Vector4fMatrix4f. transformProject(Vector4f v)Vector4fMatrix4f. transformProject(Vector4fc v, Vector4f dest)Vector4fMatrix4fc. transformProject(float x, float y, float z, float w, Vector4f dest)Transform/multiply the vector(x, y, z, w)by this matrix, perform perspective divide and store the result indest.Vector4fMatrix4fc. transformProject(Vector4f v)Transform/multiply the given vector by this matrix, perform perspective divide and store the result in that vector.Vector4fMatrix4fc. transformProject(Vector4fc v, Vector4f dest)Transform/multiply the given vector by this matrix, perform perspective divide and store the result indest.Vector4fQuaterniond. transformUnitPositiveX(Vector4f dest)Vector4fQuaterniondc. transformUnitPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this unit quaternion.Vector4fQuaternionf. transformUnitPositiveX(Vector4f dest)Vector4fQuaternionfc. transformUnitPositiveX(Vector4f dest)Transform the vector(1, 0, 0)by this unit quaternion.Vector4fQuaterniond. transformUnitPositiveY(Vector4f dest)Vector4fQuaterniondc. transformUnitPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this unit quaternion.Vector4fQuaternionf. transformUnitPositiveY(Vector4f dest)Vector4fQuaternionfc. transformUnitPositiveY(Vector4f dest)Transform the vector(0, 1, 0)by this unit quaternion.Vector4fQuaterniond. transformUnitPositiveZ(Vector4f dest)Vector4fQuaterniondc. transformUnitPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this unit quaternion.Vector4fQuaternionf. transformUnitPositiveZ(Vector4f dest)Vector4fQuaternionfc. transformUnitPositiveZ(Vector4f dest)Transform the vector(0, 0, 1)by this unit quaternion.Vector4fMatrix4f. unproject(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Vector4fMatrix4f. unproject(Vector3fc winCoords, int[] viewport, Vector4f dest)Vector4fMatrix4fc. unproject(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Unproject the given window coordinates(winX, winY, winZ)bythismatrix using the specified viewport.Vector4fMatrix4fc. unproject(Vector3fc winCoords, int[] viewport, Vector4f dest)Unproject the given window coordinateswinCoordsbythismatrix using the specified viewport.Vector4fMatrix4f. unprojectInv(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Vector4fMatrix4f. unprojectInv(Vector3fc winCoords, int[] viewport, Vector4f dest)Vector4fMatrix4fc. unprojectInv(float winX, float winY, float winZ, int[] viewport, Vector4f dest)Unproject the given window coordinates(winX, winY, winZ)bythismatrix using the specified viewport.Vector4fMatrix4fc. unprojectInv(Vector3fc winCoords, int[] viewport, Vector4f dest)Unproject the given window coordinateswinCoordsbythismatrix using the specified viewport. -
Uses of Vector4f in org.joml.internal
Methods in org.joml.internal with parameters of type Vector4f Modifier and Type Method Description abstract voidMemUtil. broadcast(float c, Vector4f dest)voidMemUtil.MemUtilNIO. broadcast(float c, Vector4f dest)abstract voidMemUtil. copy(Vector4f src, Vector4f dst)voidMemUtil.MemUtilNIO. copy(Vector4f src, Vector4f dst)abstract voidMemUtil. get(Vector4f dst, int offset, ByteBuffer src)abstract voidMemUtil. get(Vector4f dst, int offset, FloatBuffer src)voidMemUtil.MemUtilNIO. get(Vector4f dst, int offset, ByteBuffer src)voidMemUtil.MemUtilNIO. get(Vector4f dst, int offset, FloatBuffer src)abstract voidMemUtil. getColumn0(Matrix4f dest, Vector4f src)voidMemUtil.MemUtilNIO. getColumn0(Matrix4f dest, Vector4f src)abstract voidMemUtil. getColumn1(Matrix4f dest, Vector4f src)voidMemUtil.MemUtilNIO. getColumn1(Matrix4f dest, Vector4f src)abstract voidMemUtil. getColumn2(Matrix4f dest, Vector4f src)voidMemUtil.MemUtilNIO. getColumn2(Matrix4f dest, Vector4f src)abstract voidMemUtil. getColumn3(Matrix4f dest, Vector4f src)voidMemUtil.MemUtilNIO. getColumn3(Matrix4f dest, Vector4f src)voidMemUtil.MemUtilNIO. put(Vector4f src, int offset, ByteBuffer dest)voidMemUtil.MemUtilNIO. put(Vector4f src, int offset, FloatBuffer dest)abstract voidMemUtil. put(Vector4f src, int offset, ByteBuffer dest)abstract voidMemUtil. put(Vector4f src, int offset, FloatBuffer dest)voidMemUtil.MemUtilNIO. putColumn0(Matrix4f src, Vector4f dest)abstract voidMemUtil. putColumn0(Matrix4f src, Vector4f dest)voidMemUtil.MemUtilNIO. putColumn1(Matrix4f src, Vector4f dest)abstract voidMemUtil. putColumn1(Matrix4f src, Vector4f dest)voidMemUtil.MemUtilNIO. putColumn2(Matrix4f src, Vector4f dest)abstract voidMemUtil. putColumn2(Matrix4f src, Vector4f dest)voidMemUtil.MemUtilNIO. putColumn3(Matrix4f src, Vector4f dest)abstract voidMemUtil. putColumn3(Matrix4f src, Vector4f dest)voidMemUtil.MemUtilNIO. set(Matrix4f m, Vector4f col0, Vector4f col1, Vector4f col2, Vector4f col3)abstract voidMemUtil. set(Matrix4f dest, Vector4f col0, Vector4f col1, Vector4f col2, Vector4f col3)voidMemUtil.MemUtilNIO. zero(Vector4f dest)abstract voidMemUtil. zero(Vector4f dest)
-