Modifier and Type | Method and Description |
---|---|
float |
approximateUniformScale()
Returns an approximation of the uniform scale for this matrix (the cube root of the
signed volume of the parallelepiped spanned by the axis vectors).
|
boolean |
epsilonEquals(IMatrix4 other,
float epsilon)
Compares this matrix to another with the provided epsilon.
|
Quaternion |
extractRotation()
Extracts the rotation component of the matrix.
|
Quaternion |
extractRotation(Quaternion result)
Extracts the rotation component of the matrix and places it in the provided result
quaternion.
|
Matrix3 |
extractRotationScale(Matrix3 result)
Extracts the rotation and scale components and places them in the provided result.
|
Vector3 |
extractScale()
Extracts the scale component of the matrix.
|
Vector3 |
extractScale(Vector3 result)
Extracts the scale component of the matrix and places it in the provided result vector.
|
FloatBuffer |
get(FloatBuffer buf)
Places the contents of this matrix into the given buffer in the standard OpenGL order.
|
Matrix4 |
invert()
Inverts this matrix.
|
Matrix4 |
invert(Matrix4 result)
Inverts this matrix and places the result in the given object.
|
Matrix4 |
invertAffine()
Inverts this matrix as an affine matrix.
|
Matrix4 |
invertAffine(Matrix4 result)
Inverts this matrix as an affine matrix and places the result in the given object.
|
boolean |
isAffine()
Determines whether this matrix represents an affine transformation.
|
boolean |
isMirrored()
Determines whether the matrix is mirrored.
|
Matrix4 |
lerp(IMatrix4 other,
float t)
Linearly interpolates between this and the specified other matrix.
|
Matrix4 |
lerp(IMatrix4 other,
float t,
Matrix4 result)
Linearly interpolates between this and the specified other matrix, placing the result in
the object provided.
|
Matrix4 |
lerpAffine(IMatrix4 other,
float t)
Linearly interpolates between this and the specified other matrix, treating the matrices as
affine.
|
Matrix4 |
lerpAffine(IMatrix4 other,
float t,
Matrix4 result)
Linearly interpolates between this and the specified other matrix (treating the matrices as
affine), placing the result in the object provided.
|
float |
m00()
Returns the (0,0)th component of the matrix.
|
float |
m01()
Returns the (0,1)th component of the matrix.
|
float |
m02()
Returns the (0,2)th component of the matrix.
|
float |
m03()
Returns the (0,3)th component of the matrix.
|
float |
m10()
Returns the (1,0)th component of the matrix.
|
float |
m11()
Returns the (1,1)th component of the matrix.
|
float |
m12()
Returns the (1,2)th component of the matrix.
|
float |
m13()
Returns the (1,3)th component of the matrix.
|
float |
m20()
Returns the (2,0)th component of the matrix.
|
float |
m21()
Returns the (2,1)th component of the matrix.
|
float |
m22()
Returns the (2,2)th component of the matrix.
|
float |
m23()
Returns the (2,3)th component of the matrix.
|
float |
m30()
Returns the (3,0)th component of the matrix.
|
float |
m31()
Returns the (3,1)th component of the matrix.
|
float |
m32()
Returns the (3,2)th component of the matrix.
|
float |
m33()
Returns the (3,3)th component of the matrix.
|
Matrix4 |
mult(IMatrix4 other)
Multiplies this matrix by another.
|
Matrix4 |
mult(IMatrix4 other,
Matrix4 result)
Multiplies this matrix by another and stores the result in the object provided.
|
Matrix4 |
multAffine(IMatrix4 other)
Multiplies this matrix by another, treating the matrices as affine.
|
Matrix4 |
multAffine(IMatrix4 other,
Matrix4 result)
Multiplies this matrix by another, treating the matrices as affine, and stores the result
in the object provided.
|
Vector3 |
projectPoint(IVector3 point)
Projects the supplied point using this matrix.
|
Vector3 |
projectPoint(IVector3 point,
Vector3 result)
Projects the supplied point using this matrix and places the result in the object supplied.
|
Vector3 |
projectPointLocal(Vector3 point)
Projects the supplied point in-place using this matrix.
|
Vector4 |
transform(IVector4 vector)
Transforms
vector by this matrix (M * V). |
Vector4 |
transform(IVector4 vector,
Vector4 result)
Transforms
vector by this matrix (M * V) and stores the result in the object
provided. |
Vector3 |
transformPoint(IVector3 point)
Transforms a point by this matrix.
|
Vector3 |
transformPoint(IVector3 point,
Vector3 result)
Transforms a point by this matrix and places the result in the object provided.
|
Vector3 |
transformPointLocal(Vector3 point)
Transforms a point in-place by this matrix.
|
float |
transformPointZ(IVector3 point)
Transforms a point by this matrix and returns the resulting z coordinate.
|
Vector3 |
transformVector(IVector3 vector)
Transforms a vector by this inner 3x3 part of this matrix.
|
Vector3 |
transformVector(IVector3 vector,
Vector3 result)
Transforms a vector by the inner 3x3 part of this matrix and places the result in the object
provided.
|
Vector3 |
transformVectorLocal(Vector3 vector)
Transforms a vector in-place by the inner 3x3 part of this matrix.
|
Matrix4 |
transpose()
Transposes this matrix.
|
Matrix4 |
transpose(Matrix4 result)
Transposes this matrix, storing the result in the provided object.
|
float m00()
float m10()
float m20()
float m30()
float m01()
float m11()
float m21()
float m31()
float m02()
float m12()
float m22()
float m32()
float m03()
float m13()
float m23()
float m33()
Matrix4 transpose()
Matrix4 transpose(Matrix4 result)
Matrix4 mult(IMatrix4 other)
Matrix4 mult(IMatrix4 other, Matrix4 result)
boolean isAffine()
boolean isMirrored()
Matrix4 multAffine(IMatrix4 other)
Matrix4 multAffine(IMatrix4 other, Matrix4 result)
Matrix4 invert()
Matrix4 invert(Matrix4 result)
Matrix4 invertAffine()
Matrix4 invertAffine(Matrix4 result)
Matrix4 lerp(IMatrix4 other, float t)
Matrix4 lerp(IMatrix4 other, float t, Matrix4 result)
Matrix4 lerpAffine(IMatrix4 other, float t)
Matrix4 lerpAffine(IMatrix4 other, float t, Matrix4 result)
FloatBuffer get(FloatBuffer buf)
Vector3 projectPointLocal(Vector3 point)
Vector3 projectPoint(IVector3 point)
Vector3 projectPoint(IVector3 point, Vector3 result)
Vector3 transformPointLocal(Vector3 point)
Vector3 transformPoint(IVector3 point)
Vector3 transformPoint(IVector3 point, Vector3 result)
float transformPointZ(IVector3 point)
Vector3 transformVectorLocal(Vector3 vector)
Vector3 transformVector(IVector3 vector)
Vector3 transformVector(IVector3 vector, Vector3 result)
Vector4 transform(IVector4 vector)
vector
by this matrix (M * V).Vector4 transform(IVector4 vector, Vector4 result)
vector
by this matrix (M * V) and stores the result in the object
provided.Quaternion extractRotation()
Quaternion extractRotation(Quaternion result)
Matrix3 extractRotationScale(Matrix3 result)
result
, for chaining.Vector3 extractScale()
Vector3 extractScale(Vector3 result)
float approximateUniformScale()
boolean epsilonEquals(IMatrix4 other, float epsilon)
Copyright © 2017. All rights reserved.