Companion

external object Companion : Packable<Matrix3> (source)

Properties

Link copied to clipboard
external val COLUMN0ROW0: Double

The index into Matrix3 for column 0, row 0.

Link copied to clipboard
external val COLUMN0ROW1: Double

The index into Matrix3 for column 0, row 1.

Link copied to clipboard
external val COLUMN0ROW2: Double

The index into Matrix3 for column 0, row 2.

Link copied to clipboard
external val COLUMN1ROW0: Double

The index into Matrix3 for column 1, row 0.

Link copied to clipboard
external val COLUMN1ROW1: Double

The index into Matrix3 for column 1, row 1.

Link copied to clipboard
external val COLUMN1ROW2: Double

The index into Matrix3 for column 1, row 2.

Link copied to clipboard
external val COLUMN2ROW0: Double

The index into Matrix3 for column 2, row 0.

Link copied to clipboard
external val COLUMN2ROW1: Double

The index into Matrix3 for column 2, row 1.

Link copied to clipboard
external val COLUMN2ROW2: Double

The index into Matrix3 for column 2, row 2.

Link copied to clipboard
external val IDENTITY: Matrix3

An immutable Matrix3 instance initialized to the identity matrix.

Link copied to clipboard
open external override val packedLength: Int

The number of elements used to pack the object into an array.

Link copied to clipboard
external val ZERO: Matrix3

An immutable Matrix3 instance initialized to the zero matrix.

Functions

Link copied to clipboard
external fun abs(matrix: Matrix3, result: Matrix3): Matrix3

Computes a matrix, which contains the absolute (unsigned) values of the provided matrix's elements.

Link copied to clipboard
external fun add(left: Matrix3, right: Matrix3, result: Matrix3): Matrix3

Computes the sum of two matrices.

Link copied to clipboard
external fun clone(matrix: Matrix3, result: Matrix3? = definedExternally): Matrix3

Duplicates a Matrix3 instance.

Link copied to clipboard
external fun computeEigenDecomposition(matrix: Matrix3, result: EigenDecompositionResult? = definedExternally): EigenDecompositionResult

Computes the eigenvectors and eigenvalues of a symmetric matrix.

Link copied to clipboard
external fun determinant(matrix: Matrix3): Double

Computes the determinant of the provided matrix.

Link copied to clipboard
external fun equals(left: Matrix3? = definedExternally, right: Matrix3? = definedExternally): Boolean

Compares the provided matrices componentwise and returns true if they are equal, false otherwise.

Link copied to clipboard
external fun equalsEpsilon(left: Matrix3? = definedExternally, right: Matrix3? = definedExternally, epsilon: Double? = definedExternally): Boolean

Compares the provided matrices componentwise and returns true if they are within the provided epsilon, false otherwise.

Link copied to clipboard
external fun fromArray(array: ReadonlyArray<JsDouble>, startingIndex: Int? = definedExternally, result: Matrix3? = definedExternally): Matrix3

Creates a Matrix3 from 9 consecutive elements in an array.

Link copied to clipboard
external fun fromColumnMajorArray(values: ReadonlyArray<JsDouble>, result: Matrix3? = definedExternally): Matrix3

Creates a Matrix3 instance from a column-major order array.

Link copied to clipboard
external fun fromCrossProduct(vector: Cartesian3, result: Matrix3? = definedExternally): Matrix3

Computes a Matrix3 instance representing the cross product equivalent matrix of a Cartesian3 vector.

Link copied to clipboard
external fun fromHeadingPitchRoll(headingPitchRoll: HeadingPitchRoll, result: Matrix3? = definedExternally): Matrix3

Computes a 3x3 rotation matrix from the provided headingPitchRoll. (see http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles )

Link copied to clipboard
external fun fromQuaternion(quaternion: Quaternion, result: Matrix3? = definedExternally): Matrix3

Computes a 3x3 rotation matrix from the provided quaternion.

Link copied to clipboard
external fun fromRotationX(angle: Double, result: Matrix3? = definedExternally): Matrix3

Creates a rotation matrix around the x-axis.

Link copied to clipboard
external fun fromRotationY(angle: Double, result: Matrix3? = definedExternally): Matrix3

Creates a rotation matrix around the y-axis.

Link copied to clipboard
external fun fromRotationZ(angle: Double, result: Matrix3? = definedExternally): Matrix3

Creates a rotation matrix around the z-axis.

Link copied to clipboard
external fun fromRowMajorArray(values: ReadonlyArray<JsDouble>, result: Matrix3? = definedExternally): Matrix3

Creates a Matrix3 instance from a row-major order array. The resulting matrix will be in column-major order.

Link copied to clipboard
external fun fromScale(scale: Cartesian3, result: Matrix3? = definedExternally): Matrix3

Computes a Matrix3 instance representing a non-uniform scale.

Link copied to clipboard
external fun fromUniformScale(scale: Double, result: Matrix3? = definedExternally): Matrix3

Computes a Matrix3 instance representing a uniform scale.

Link copied to clipboard
external fun getColumn(matrix: Matrix3, index: Int, result: Cartesian3): Cartesian3

Retrieves a copy of the matrix column at the provided index as a Cartesian3 instance.

Link copied to clipboard
external fun getElementIndex(column: Int, row: Int): Int

Computes the array index of the element at the provided row and column.

Link copied to clipboard
external fun getMaximumScale(matrix: Matrix3): Double

Computes the maximum scale assuming the matrix is an affine transformation. The maximum scale is the maximum length of the column vectors.

Link copied to clipboard
external fun getRotation(matrix: Matrix3, result: Matrix3): Matrix3

Extracts the rotation matrix assuming the matrix is an affine transformation.

Link copied to clipboard
external fun getRow(matrix: Matrix3, index: Int, result: Cartesian3): Cartesian3

Retrieves a copy of the matrix row at the provided index as a Cartesian3 instance.

Link copied to clipboard
external fun getScale(matrix: Matrix3, result: Cartesian3): Cartesian3

Extracts the non-uniform scale assuming the matrix is an affine transformation.

Link copied to clipboard
external fun inverse(matrix: Matrix3, result: Matrix3): Matrix3

Computes the inverse of the provided matrix.

Link copied to clipboard
external fun inverseTranspose(matrix: Matrix3, result: Matrix3): Matrix3

Computes the inverse transpose of a matrix.

Link copied to clipboard
external fun multiply(left: Matrix3, right: Matrix3, result: Matrix3): Matrix3

Computes the product of two matrices.

Link copied to clipboard
external fun multiplyByScalar(matrix: Matrix3, scalar: Double, result: Matrix3): Matrix3

Computes the product of a matrix and a scalar.

Link copied to clipboard
external fun multiplyByScale(matrix: Matrix3, scale: Cartesian3, result: Matrix3): Matrix3

Computes the product of a matrix times a (non-uniform) scale, as if the scale were a scale matrix.

Link copied to clipboard
external fun multiplyByUniformScale(matrix: Matrix3, scale: Double, result: Matrix3): Matrix3

Computes the product of a matrix times a uniform scale, as if the scale were a scale matrix.

Link copied to clipboard
external fun multiplyByVector(matrix: Matrix3, cartesian: Cartesian3, result: Cartesian3): Cartesian3

Computes the product of a matrix and a column vector.

Link copied to clipboard
external fun negate(matrix: Matrix3, result: Matrix3): Matrix3

Creates a negated copy of the provided matrix.

Link copied to clipboard
open external override fun pack(value: Matrix3, array: ReadonlyArray<JsDouble>, startingIndex: Int? = definedExternally): ReadonlyArray<JsDouble>

Stores the provided instance into the provided array.

Link copied to clipboard
external fun packArray(array: ReadonlyArray<Matrix3>, result: ReadonlyArray<JsDouble>? = definedExternally): ReadonlyArray<JsDouble>

Flattens an array of Matrix3s into an array of components. The components are stored in column-major order.

Link copied to clipboard
external fun setColumn(matrix: Matrix3, index: Int, cartesian: Cartesian3, result: Matrix3): Matrix3

Computes a new matrix that replaces the specified column in the provided matrix with the provided Cartesian3 instance.

Link copied to clipboard
external fun setRotation(matrix: Matrix3, rotation: Matrix3, result: Matrix3): Matrix3

Sets the rotation assuming the matrix is an affine transformation.

Link copied to clipboard
external fun setRow(matrix: Matrix3, index: Int, cartesian: Cartesian3, result: Matrix3): Matrix3

Computes a new matrix that replaces the specified row in the provided matrix with the provided Cartesian3 instance.

Link copied to clipboard
external fun setScale(matrix: Matrix3, scale: Cartesian3, result: Matrix3): Matrix3

Computes a new matrix that replaces the scale with the provided scale. This assumes the matrix is an affine transformation.

Link copied to clipboard
external fun setUniformScale(matrix: Matrix3, scale: Double, result: Matrix3): Matrix3

Computes a new matrix that replaces the scale with the provided uniform scale. This assumes the matrix is an affine transformation.

Link copied to clipboard
external fun subtract(left: Matrix3, right: Matrix3, result: Matrix3): Matrix3

Computes the difference of two matrices.

Link copied to clipboard
external fun toArray(matrix: Matrix3, result: ReadonlyArray<JsDouble>? = definedExternally): ReadonlyArray<JsDouble>

Creates an Array from the provided Matrix3 instance. The array will be in column-major order.

Link copied to clipboard
external fun transpose(matrix: Matrix3, result: Matrix3): Matrix3

Computes the transpose of the provided matrix.

Link copied to clipboard
open external override fun unpack(array: ReadonlyArray<JsDouble>, startingIndex: Int? = definedExternally, result: Matrix3? = definedExternally): Matrix3

Retrieves an instance from a packed array.

Link copied to clipboard
external fun unpackArray(array: ReadonlyArray<JsDouble>, result: ReadonlyArray<Matrix3>? = definedExternally): ReadonlyArray<Matrix3>

Unpacks an array of column-major matrix components into an array of Matrix3s.