Package | Description |
---|---|
org.cesiumjs.cs.core |
Modifier and Type | Method and Description |
---|---|
static Matrix2 |
Matrix2.abs(Matrix2 matrix,
Matrix2 result)
Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.
|
static Matrix2 |
Matrix2.add(Matrix2 left,
Matrix2 right,
Matrix2 result)
Computes the sum of two matrices.
|
Matrix2 |
Matrix2.clone()
Duplicates the provided Matrix2 instance.
|
Matrix2 |
Matrix2.clone(Matrix2 result)
Duplicates the provided Matrix2 instance.
|
static Matrix2 |
Matrix2.clone(Matrix2 matrix,
Matrix2 result)
Duplicates a Matrix2 instance.
|
static Matrix2 |
Matrix2.fromArray(double[] array)
Creates a Matrix2 from 4 consecutive elements in an array.
|
static Matrix2 |
Matrix2.fromArray(double[] array,
int startingIndex)
Creates a Matrix2 from 4 consecutive elements in an array.
|
static Matrix2 |
Matrix2.fromArray(double[] array,
int startingIndex,
Matrix2 result)
Creates a Matrix2 from 4 consecutive elements in an array.
|
static Matrix2 |
Matrix2.fromColumnMajorArray(double[] values)
Creates a Matrix2 instance from a column-major order array.
|
static Matrix2 |
Matrix2.fromColumnMajorArray(double[] values,
Matrix2 result)
Creates a Matrix2 instance from a column-major order array.
|
static Matrix2 |
Matrix2.fromRotation(double angle)
Creates a rotation matrix.
|
static Matrix2 |
Matrix2.fromRotation(double angle,
Matrix2 result)
Creates a rotation matrix.
|
static Matrix2 |
Matrix2.fromRowMajorArray(double[] values)
Creates a Matrix2 instance from a row-major order array.
|
static Matrix2 |
Matrix2.fromRowMajorArray(double[] values,
Matrix2 result)
Creates a Matrix2 instance from a row-major order array.
|
static Matrix2 |
Matrix2.fromScale(Cartesian2 scale)
Computes a Matrix2 instance representing a non-uniform scale.
|
static Matrix2 |
Matrix2.fromScale(Cartesian2 scale,
Matrix2 result)
Computes a Matrix2 instance representing a non-uniform scale.
|
static Matrix2 |
Matrix2.fromUniformScale(double scale)
Computes a Matrix2 instance representing a uniform scale.
|
static Matrix2 |
Matrix2.fromUniformScale(double scale,
Matrix2 result)
Computes a Matrix2 instance representing a uniform scale.
|
static Matrix2 |
Matrix2.IDENTITY()
An immutable Matrix2 instance initialized to the identity matrix.
|
static Matrix2 |
Matrix2.multiply(Matrix2 left,
Matrix2 right,
Matrix2 result)
Computes the product of two matrices.
|
static Matrix2 |
Matrix2.multiplyByScalar(Matrix2 matrix,
double scalar,
Matrix2 result)
Computes the product of a matrix and a scalar.
|
static Matrix2 |
Matrix2.multiplyByScale(Matrix2 matrix,
Cartesian2 scale,
Matrix2 result)
Computes the product of a matrix times a (non-uniform) scale, as if the scale were a scale matrix.
|
static Matrix2 |
Matrix2.negate(Matrix2 matrix,
Matrix2 result)
Creates a negated copy of the provided matrix.
|
static Matrix2 |
Matrix2.setColumn(Matrix2 matrix,
int index,
Cartesian2 cartesian,
Matrix2 result)
Computes a new matrix that replaces the specified column in the provided matrix with the provided Cartesian2 instance.
|
static Matrix2 |
Matrix2.setRow(Matrix2 matrix,
int index,
Cartesian2 cartesian,
Matrix2 result)
Computes a new matrix that replaces the specified row in the provided matrix with the provided Cartesian2 instance.
|
static Matrix2 |
Matrix2.subtract(Matrix2 left,
Matrix2 right,
Matrix2 result)
Computes the difference of two matrices.
|
static Matrix2 |
Matrix2.transpose(Matrix2 matrix,
Matrix2 result)
Computes the transpose of the provided matrix.
|
static Matrix2 |
Matrix2.unpack(double[] array)
Retrieves an instance from a packed array.
|
static Matrix2 |
Matrix2.unpack(double[] array,
int startingIndex)
Retrieves an instance from a packed array.
|
static Matrix2 |
Matrix2.unpack(double[] array,
int startingIndex,
Matrix2 result)
Retrieves an instance from a packed array.
|
static Matrix2 |
Matrix2.ZERO()
An immutable Matrix2 instance initialized to the zero matrix.
|
Modifier and Type | Method and Description |
---|---|
static Matrix2 |
Matrix2.abs(Matrix2 matrix,
Matrix2 result)
Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.
|
static Matrix2 |
Matrix2.add(Matrix2 left,
Matrix2 right,
Matrix2 result)
Computes the sum of two matrices.
|
Matrix2 |
Matrix2.clone(Matrix2 result)
Duplicates the provided Matrix2 instance.
|
static Matrix2 |
Matrix2.clone(Matrix2 matrix,
Matrix2 result)
Duplicates a Matrix2 instance.
|
boolean |
Matrix2.equals(Matrix2 right)
Compares this matrix to the provided matrix componentwise and returns true if they are equal, false otherwise.
|
static boolean |
Matrix2.equals(Matrix2 left,
Matrix2 right)
Compares the provided matrices componentwise and returns true if they are equal, false otherwise.
|
boolean |
Matrix2.equalsEpsilon(Matrix2 right,
double epsilon)
Compares this matrix to the provided matrix componentwise and returns true if they are within the provided epsilon, false otherwise.
|
static boolean |
Matrix2.equalsEpsilon(Matrix2 left,
Matrix2 right,
double epsilon)
Compares the provided matrices componentwise and returns true if they are within the provided epsilon, false otherwise.
|
static Matrix2 |
Matrix2.fromArray(double[] array,
int startingIndex,
Matrix2 result)
Creates a Matrix2 from 4 consecutive elements in an array.
|
static Matrix2 |
Matrix2.fromColumnMajorArray(double[] values,
Matrix2 result)
Creates a Matrix2 instance from a column-major order array.
|
static Matrix2 |
Matrix2.fromRotation(double angle,
Matrix2 result)
Creates a rotation matrix.
|
static Matrix2 |
Matrix2.fromRowMajorArray(double[] values,
Matrix2 result)
Creates a Matrix2 instance from a row-major order array.
|
static Matrix2 |
Matrix2.fromScale(Cartesian2 scale,
Matrix2 result)
Computes a Matrix2 instance representing a non-uniform scale.
|
static Matrix2 |
Matrix2.fromUniformScale(double scale,
Matrix2 result)
Computes a Matrix2 instance representing a uniform scale.
|
static Cartesian2 |
Matrix2.getColumn(Matrix2 matrix,
int index,
Cartesian2 result)
Retrieves a copy of the matrix column at the provided index as a Cartesian2 instance.
|
static double |
Matrix2.getMaximumScale(Matrix2 matrix)
Computes the maximum scale assuming the matrix is an affine transformation.
|
static Cartesian2 |
Matrix2.getRow(Matrix2 matrix,
int index,
Cartesian2 result)
Retrieves a copy of the matrix row at the provided index as a Cartesian2 instance.
|
static Cartesian2 |
Matrix2.getScale(Matrix2 matrix,
Cartesian2 result)
Extracts the non-uniform scale assuming the matrix is an affine transformation.
|
static Matrix2 |
Matrix2.multiply(Matrix2 left,
Matrix2 right,
Matrix2 result)
Computes the product of two matrices.
|
static Matrix2 |
Matrix2.multiplyByScalar(Matrix2 matrix,
double scalar,
Matrix2 result)
Computes the product of a matrix and a scalar.
|
static Matrix2 |
Matrix2.multiplyByScale(Matrix2 matrix,
Cartesian2 scale,
Matrix2 result)
Computes the product of a matrix times a (non-uniform) scale, as if the scale were a scale matrix.
|
static Cartesian2 |
Matrix2.multiplyByVector(Matrix2 matrix,
Cartesian2 cartesian,
Cartesian2 result)
Computes the product of a matrix and a column vector.
|
static Matrix2 |
Matrix2.negate(Matrix2 matrix,
Matrix2 result)
Creates a negated copy of the provided matrix.
|
static double[] |
Matrix2.pack(Matrix2 value,
double[] array)
Stores the provided instance into the provided array.
|
static double[] |
Matrix2.pack(Matrix2 value,
double[] array,
int startingIndex)
Stores the provided instance into the provided array.
|
static Matrix2 |
Matrix2.setColumn(Matrix2 matrix,
int index,
Cartesian2 cartesian,
Matrix2 result)
Computes a new matrix that replaces the specified column in the provided matrix with the provided Cartesian2 instance.
|
static Matrix2 |
Matrix2.setRow(Matrix2 matrix,
int index,
Cartesian2 cartesian,
Matrix2 result)
Computes a new matrix that replaces the specified row in the provided matrix with the provided Cartesian2 instance.
|
static Matrix2 |
Matrix2.subtract(Matrix2 left,
Matrix2 right,
Matrix2 result)
Computes the difference of two matrices.
|
static double[] |
Matrix2.toArray(Matrix2 matrix)
Creates an Array from the provided Matrix2 instance.
|
static double[] |
Matrix2.toArray(Matrix2 matrix,
double[] result)
Creates an Array from the provided Matrix2 instance.
|
static Matrix2 |
Matrix2.transpose(Matrix2 matrix,
Matrix2 result)
Computes the transpose of the provided matrix.
|
static Matrix2 |
Matrix2.unpack(double[] array,
int startingIndex,
Matrix2 result)
Retrieves an instance from a packed array.
|
Copyright © 2019. All rights reserved.