Skip to content
On this page

Class: Matrix4

WebSG.Matrix4

The Matrix4 class represents a 4x4 matrix of numbers.

Indexable

▪ [n: number]: number

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Matrix4()

Properties

length

Readonly length: number

Returns the number of elements of the Matrix.

Defined in

websg.d.ts:475

Methods

set

set(value): Matrix4

Sets the elements of the Matrix.

Parameters

NameTypeDescription
valueArrayLike<number>The new values for the Matrix4 instance.

Returns

Matrix4

Defined in

websg.d.ts:470