# Matrix2

## clay. Matrix2

Source:

### Members

Source:
• boolean

#### #array :Float32Array

Source:

Storage of Matrix2

• Float32Array

### Methods

#### #adjoint() → {clay.Matrix2}

Source:

Calculate the adjugate of self, in-place

Type
clay.Matrix2

#### #clone() → {clay.Matrix2}

Source:

Clone a new Matrix2

Type
clay.Matrix2

#### #copy(b) → {clay.Matrix2}

Source:

Copy from b

##### Parameters:
Name Type Description
`b` clay.Matrix2
Type
clay.Matrix2

#### #determinant() → {number}

Source:

Calculate matrix determinant

Type
number

#### #identity() → {clay.Matrix2}

Source:

Set to a identity matrix

Type
clay.Matrix2

Source:

Invert self

Type
clay.Matrix2

#### #mul(b) → {clay.Matrix2}

Source:

Alias for mutiply

##### Parameters:
Name Type Description
`b` clay.Matrix2
Type
clay.Matrix2

#### #mulLeft(a) → {clay.Matrix2}

Source:

Alias for multiplyLeft

##### Parameters:
Name Type Description
`a` clay.Matrix2
Type
clay.Matrix2

#### #multiply(b) → {clay.Matrix2}

Source:

Multiply self and b

##### Parameters:
Name Type Description
`b` clay.Matrix2
Type
clay.Matrix2

#### #multiplyLeft(a) → {clay.Matrix2}

Source:

Multiply a and self, a is on the left

##### Parameters:
Name Type Description
`a` clay.Matrix2
Type
clay.Matrix2

#### #rotate(rad) → {clay.Matrix2}

Source:

Rotate self by a given radian

##### Parameters:
Name Type Description
`rad` number
Type
clay.Matrix2

#### #scale(s) → {clay.Matrix2}

Source:

Scale self by s

##### Parameters:
Name Type Description
`s` clay.Vector2
Type
clay.Matrix2

#### #setArray(arr)

Source:

Set components from array

##### Parameters:
Name Type Description
`arr` Float32Array | Array.<number>

#### #transpose() → {clay.Matrix2}

Source:

Transpose self, in-place.

Type
clay.Matrix2

#### #(static) adjoint(out, a) → {Matrix2}

Source:
##### Parameters:
Name Type Description
`out` Matrix2
`a` Matrix2
Type
Matrix2

#### #(static) copy(out, a) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
`a` clay.Matrix2
Type
clay.Matrix2

#### #(static) determinant(a) → {number}

Source:
##### Parameters:
Name Type Description
`a` clay.Matrix2
Type
number

#### #(static) identity(out) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
Type
clay.Matrix2

#### #(static) invert(out, a) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
`a` clay.Matrix2
Type
clay.Matrix2

#### #(static) mul(out, a, b) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
`a` clay.Matrix2
`b` clay.Matrix2
Type
clay.Matrix2

#### #(static) multiply(out, a, b) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
`a` clay.Matrix2
`b` clay.Matrix2
Type
clay.Matrix2

#### #(static) rotate(out, a, rad) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
`a` clay.Matrix2
`rad` number
Type
clay.Matrix2

#### #(static) scale(out, a, v) → {clay.Matrix2}

Source:
##### Parameters:
Name Type Description
`out` clay.Matrix2
`a` clay.Matrix2
`v` clay.Vector2
Type
clay.Matrix2

#### #(static) transpose(out, a) → {Matrix2}

Source:
##### Parameters:
Name Type Description
`out` Matrix2
`a` Matrix2
Type
Matrix2