Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/math/Matrix3.js>Matrix3

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Matrix3
implements Matrix
import { Matrix3 } from "https://deno.land/x/threejs_4_deno@v121/src/math/Matrix3.js";

( class Matrix3 implements Matrix )

Constructors

new
Matrix3()

Creates an identity matrix.

Properties

elements: number[]

Array with matrix values.

Methods

clone(): this
copy(m: Matrix3): this
determinant(): number
equals(matrix: Matrix3): boolean
extractBasis(
xAxis: Vector3,
yAxis: Vector3,
zAxis: Vector3,
): Matrix3
deprecated
flattenToArrayOffset(array: number[], offset: number): number[]
fromArray(array: number[], offset?: number): Matrix3

Sets the values of this matrix from the provided array.

fromArray(array: ArrayLike<number>, offset?: number): Matrix3

Sets the values of this matrix from the provided array-like.

getInverse(matrix: Matrix4, throwOnDegenerate?: boolean): Matrix3

Multiplies this matrix by m.

Sets this matrix to a x b.

deprecated
multiplyVector3(vector: Vector3): any
deprecated
multiplyVector3Array(a: any): any
rotate(theta: number): Matrix3
scale(sx: number, sy: number): Matrix3
set(
n11: number,
n12: number,
n13: number,
n21: number,
n22: number,
n23: number,
n31: number,
n32: number,
n33: number,
): Matrix3
setUvTransform(
tx: number,
ty: number,
sx: number,
sy: number,
rotation: number,
cx: number,
cy: number,
): Matrix3
toArray(array?: number[], offset?: number): number[]

Returns an array with the values of this matrix, or copies them into the provided array.

toArray(array?: ArrayLike<number>, offset?: number): ArrayLike<number>

Copies he values of this matrix into the provided array-like.

translate(tx: number, ty: number): Matrix3

Transposes this matrix in place.

Transposes this matrix into the supplied array r, and returns itself.