The index into Matrix4 for column 0, row 0.
The index into Matrix4 for column 0, row 1.
The index into Matrix4 for column 0, row 2.
The index into Matrix4 for column 0, row 3.
The index into Matrix4 for column 1, row 0.
The index into Matrix4 for column 1, row 1.
The index into Matrix4 for column 1, row 2.
The index into Matrix4 for column 1, row 3.
The index into Matrix4 for column 2, row 0.
The index into Matrix4 for column 2, row 1.
The index into Matrix4 for column 2, row 2.
The index into Matrix4 for column 2, row 3.
The index into Matrix4 for column 3, row 0.
The index into Matrix4 for column 3, row 1.
The index into Matrix4 for column 3, row 2.
The index into Matrix4 for column 3, row 3.
An immutable Matrix4 instance initialized to the identity matrix.
An immutable Matrix4 instance initialized to the zero matrix.
The number of elements used to pack the object into an array.
Duplicates the provided Matrix4 instance.
The modified result parameter or a new Matrix4 instance if one was not provided.
createInverse
new inverse matrix
Compares this matrix to the provided matrix componentwise and returns
true
if they are equal, false
otherwise.
true
if they are equal, false
otherwise.
Compares this matrix to the provided matrix componentwise and returns
true
if they are within the provided epsilon,
false
otherwise.
true
if they are within the provided epsilon, false
otherwise.
leftTransformBy
input.
self
rightTransformBy
input.
self
Computes a string representing this Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
A string representing the provided Matrix with each row being on a separate line and in the format '(column0, column1, column2, column3)'.
Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.
The matrix with signed elements.
The object onto which to store the result.
The modified result parameter.
Computes the sum of two matrices.
The first matrix.
The second matrix.
The object onto which to store the result.
The modified result parameter.
The matrix to use.
The transform by matrix's position
The object onto which to store the result.
The modified result parameter.
Duplicates a Matrix4 instance.
The matrix to duplicate.
The modified result parameter or a new Matrix4 instance if one was not provided. (Returns undefined if matrix is undefined)
Computes a Matrix4 instance representing an infinite off center perspective transformation.
The number of meters to the left of the camera that will be in view.
The number of meters to the right of the camera that will be in view.
The number of meters below of the camera that will be in view.
The number of meters above of the camera that will be in view.
The distance to the near plane in meters.
The object in which the result will be stored.
The modified result parameter.
Computes a Matrix4 instance representing an orthographic transformation matrix.
The number of meters to the left of the camera that will be in view.
The number of meters to the right of the camera that will be in view.
The number of meters below of the camera that will be in view.
The number of meters above of the camera that will be in view.
The distance to the near plane in meters.
The distance to the far plane in meters.
The object in which the result will be stored.
The modified result parameter.
Computes a Matrix4 instance representing a perspective transformation matrix.
The field of view along the Y axis in radians.
The aspect ratio.
The distance to the near plane in meters.
The distance to the far plane in meters.
The object in which the result will be stored.
The modified result parameter.
Computes a Matrix4 instance representing an off center perspective transformation.
The number of meters to the left of the camera that will be in view.
The number of meters to the right of the camera that will be in view.
The number of meters below of the camera that will be in view.
The number of meters above of the camera that will be in view.
The distance to the near plane in meters.
The distance to the far plane in meters.
The object in which the result will be stored.
The modified result parameter.
Computes a Matrix4 instance that transforms from world space to view space.
The position of the camera.
The forward direction.
The up direction.
The right direction.
The object in which the result will be stored.
The modified result parameter.
Computes a Matrix4 instance that transforms from normalized device coordinates to window coordinates.
The modified result parameter.
Compares the provided matrices componentwise and returns
true
if they are equal, false
otherwise.
true
if left and right are equal, false
otherwise.
Compares the provided matrices componentwise and returns
true
if they are within the provided epsilon,
false
otherwise.
true
if left and right are within the provided epsilon, false
otherwise.
Computes a Matrix4 instance from a Camera.
The camera to use.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance from a Camera Detail.
The camera position.
The camera direction.
The camera up.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance from a column-major order array.
The column-major order array.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance from a Camera Detail.
origin.
direction.
direction.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Creates a rotation matrix.
The rotation matrix.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance from a Matrix3 representing the rotation and a Cartesian3 representing the translation.
The upper left portion of the matrix representing the rotation.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance from a row-major order array. The resulting matrix will be in column-major order.
The row-major order array.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance representing a non-uniform scale.
The x, y, and z scale factors.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Creates a Matrix4 instance from a Cartesian3 representing the translation.
The upper right portion of the matrix representing the translation.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance from a translation, rotation, and scale (TRS) representation with the rotation represented as a quaternion.
The translation transformation.
The rotation transformation.
The non-uniform scale transformation.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Creates a Matrix4 instance from a TranslationRotationScale instance.
The instance.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Computes a Matrix4 instance representing a uniform scale.
The uniform scale factor.
The modified result parameter, or a new Matrix4 instance if one was not provided.
Retrieves a copy of the matrix column at the provided index as a Cartesian4 instance.
The matrix to use.
The zero-based index of the column to retrieve.
The object onto which to store the result.
The modified result parameter.
Computes the array index of the element at the provided row and column.
The zero-based index of the row.
The zero-based index of the column.
The index of the element at the provided row and column.
Gets the upper left 3x3 rotation matrix of the provided matrix, assuming the matrix is an affine transformation matrix.
The matrix to use.
The object onto which to store the result.
The modified result parameter.
Computes the maximum scale assuming the matrix is an affine transformation. The maximum scale is the maximum length of the column vectors in the upper-left 3x3 matrix.
The matrix.
The maximum scale.
图片的右方向(y坐标值)
视锥体的宽高
世界坐标系下的点位
裁剪坐标系下的点位
通过投影前后的点集合获取投影矩阵和视角矩阵
Extracts the rotation matrix assuming the matrix is an affine transformation.
The matrix.
The object onto which to store the result.
The modified result parameter.
Retrieves a copy of the matrix row at the provided index as a Cartesian4 instance.
The matrix to use.
The zero-based index of the row to retrieve.
The object onto which to store the result.
The modified result parameter.
Extracts the non-uniform scale assuming the matrix is an affine transformation.
The matrix.
The object onto which to store the result.
The modified result parameter
Gets the translation portion of the provided matrix, assuming the matrix is a affine transformation matrix.
The matrix to use.
The object onto which to store the result.
The modified result parameter.
Computes the inverse of the provided matrix using Cramers Rule. If the determinant is zero, the matrix can not be inverted, and an exception is thrown. If the matrix is an affine transformation matrix, it is more efficient to invert it with Matrix4.inverseTransformation.
The matrix to invert.
The object onto which to store the result.
The modified result parameter.
Computes the inverse of the provided matrix assuming it is an affine transformation matrix, where the upper left 3x3 elements are a rotation matrix, and the upper three elements in the fourth column are the translation. The bottom row is assumed to be [0, 0, 0, 1]. The matrix is not verified to be in the proper form. This method is faster than computing the inverse for a general 4x4 matrix using Matrix4.inverse.
The matrix to invert.
The object onto which to store the result.
The modified result parameter.
Computes the product of two matrices.
The first matrix.
The second matrix.
The object onto which to store the result.
The modified result parameter.
Multiplies a transformation matrix (with a bottom row of [0.0, 0.0, 0.0, 1.0]
)
by a 3x3 rotation matrix. This is an optimization
for Matrix4.multiply(m, Matrix4.fromRotationTranslation(rotation), m);
with less allocations and arithmetic operations.
The matrix on the left-hand side.
The 3x3 rotation matrix on the right-hand side.
The object onto which to store the result.
The modified result parameter.
Computes the product of a matrix and a {@link Cartesian3}. This is equivalent to calling Matrix4.multiplyByVector
with a {@link Cartesian4} with a w
component of 1, but returns a {@link Cartesian3} instead of a {@link Cartesian4}.
The matrix.
The point.
The object onto which to store the result.
The modified result parameter.
Computes the product of a matrix and a {@link Cartesian3}. This is equivalent to calling Matrix4.multiplyByVector
with a {@link Cartesian4} with a w
component of zero.
The matrix.
The point.
The object onto which to store the result.
The modified result parameter.
Computes the product of a matrix and a scalar.
The matrix.
The number to multiply by.
The object onto which to store the result.
The modified result parameter.
Multiplies an affine transformation matrix (with a bottom row of [0.0, 0.0, 0.0, 1.0]
)
by an implicit non-uniform scale matrix. This is an optimization
for Matrix4.multiply(m, Matrix4.fromUniformScale(scale), m);
, where
m
must be an affine matrix.
This function performs fewer allocations and arithmetic operations.
The affine matrix on the left-hand side.
The non-uniform scale on the right-hand side.
The object onto which to store the result.
The modified result parameter.
Multiplies a transformation matrix (with a bottom row of [0.0, 0.0, 0.0, 1.0]
)
by an implicit translation matrix defined by a {@link Cartesian3}. This is an optimization
for Matrix4.multiply(m, Matrix4.fromTranslation(position), m);
with less allocations and arithmetic operations.
The matrix on the left-hand side.
The translation on the right-hand side.
The object onto which to store the result.
The modified result parameter.
Multiplies an affine transformation matrix (with a bottom row of [0.0, 0.0, 0.0, 1.0]
)
by an implicit uniform scale matrix. This is an optimization
for Matrix4.multiply(m, Matrix4.fromUniformScale(scale), m);
, where
m
must be an affine matrix.
This function performs fewer allocations and arithmetic operations.
The affine matrix on the left-hand side.
The uniform scale on the right-hand side.
The object onto which to store the result.
The modified result parameter.
Computes the product of a matrix and a column vector.
The matrix.
The vector.
The object onto which to store the result.
The modified result parameter.
Computes the product of two matrices assuming the matrices are affine transformation matrices, where the upper left 3x3 elements are a rotation matrix, and the upper three elements in the fourth column are the translation. The bottom row is assumed to be [0, 0, 0, 1]. The matrix is not verified to be in the proper form. This method is faster than computing the product for general 4x4 matrices using Matrix4.multiply.
The first matrix.
The second matrix.
The object onto which to store the result.
The modified result parameter.
Computes a negated copy of the provided matrix.
The matrix to negate.
The object onto which to store the result.
The modified result parameter.
Stores the provided instance into the provided array.
The value to pack.
The array to pack into.
The array that was packed into
Computes a new matrix that replaces the specified column in the provided matrix with the provided Cartesian4 instance.
The matrix to use.
The zero-based index of the column to set.
The Cartesian whose values will be assigned to the specified column.
The object onto which to store the result.
The modified result parameter.
Sets the rotation assuming the matrix is an affine transformation.
The matrix.
The rotation matrix.
The object onto which to store the result.
The modified result parameter.
Computes a new matrix that replaces the specified row in the provided matrix with the provided Cartesian4 instance.
The matrix to use.
The zero-based index of the row to set.
The Cartesian whose values will be assigned to the specified row.
The object onto which to store the result.
The modified result parameter.
Computes a new matrix that replaces the scale with the provided scale. This assumes the matrix is an affine transformation
The matrix to use.
The scale that replaces the scale of the provided matrix.
The object onto which to store the result.
The modified result parameter.
Computes a new matrix that replaces the translation in the rightmost column of the provided matrix with the provided translation. This assumes the matrix is an affine transformation
The matrix to use.
The translation that replaces the translation of the provided matrix.
The object onto which to store the result.
The modified result parameter.
The matrix to use.
The transform need to subtract
The object onto which to store the result.
The modified result parameter.
Computes the difference of two matrices.
The first matrix.
The second matrix.
The object onto which to store the result.
The modified result parameter.
Computes the transpose of the provided matrix.
The matrix to transpose.
The object onto which to store the result.
The modified result parameter.
Retrieves an instance from a packed array.
The packed array.
The modified result parameter or a new Matrix4 instance if one was not provided.
Gets the number of items in the collection.