Matrix3

clay. Matrix3

# new Matrix3()

Source:

Members

# _dirty :boolean

Source:
Type:
  • boolean

# array :Float32Array

Source:

Storage of Matrix3

Type:
  • Float32Array

Methods

# adjoint() → {clay.Matrix3}

Source:

Calculate the adjugate of self, in-place

Returns:
Type
clay.Matrix3

# clone() → {clay.Matrix3}

Source:

Clone a new Matrix3

Returns:
Type
clay.Matrix3

# copy(b) → {clay.Matrix3}

Source:

Copy from b

Parameters:
Name Type Description
b clay.Matrix3
Returns:
Type
clay.Matrix3

# determinant() → {number}

Source:

Calculate matrix determinant

Returns:
Type
number

# fromMat2d(a) → {clay.Matrix3}

Source:

Copy the values from Matrix2d a

Parameters:
Name Type Description
a clay.Matrix2d
Returns:
Type
clay.Matrix3

# fromMat4(a) → {clay.Matrix3}

Source:

Copies the upper-left 3x3 values of Matrix4

Parameters:
Name Type Description
a clay.Matrix4
Returns:
Type
clay.Matrix3

# fromQuat(q) → {clay.Matrix3}

Source:

Calculates a rotation matrix from the given quaternion

Parameters:
Name Type Description
q clay.Quaternion
Returns:
Type
clay.Matrix3

# identity() → {clay.Matrix3}

Source:

Set to a identity matrix

Returns:
Type
clay.Matrix3

# invert() → {clay.Matrix3}

Source:

Invert self

Returns:
Type
clay.Matrix3

# mul(b) → {clay.Matrix3}

Source:

Alias for mutiply

Parameters:
Name Type Description
b clay.Matrix3
Returns:
Type
clay.Matrix3

# mulLeft(a) → {clay.Matrix3}

Source:

Alias for multiplyLeft

Parameters:
Name Type Description
a clay.Matrix3
Returns:
Type
clay.Matrix3

# multiply(b) → {clay.Matrix3}

Source:

Multiply self and b

Parameters:
Name Type Description
b clay.Matrix3
Returns:
Type
clay.Matrix3

# multiplyLeft(a) → {clay.Matrix3}

Source:

Multiply a and self, a is on the left

Parameters:
Name Type Description
a clay.Matrix3
Returns:
Type
clay.Matrix3

# normalFromMat4(a)

Source:

Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix

Parameters:
Name Type Description
a clay.Matrix4

# rotate(rad) → {clay.Matrix3}

Source:

Rotate self by a given radian

Parameters:
Name Type Description
rad number
Returns:
Type
clay.Matrix3

# scale(s) → {clay.Matrix3}

Source:

Scale self by s

Parameters:
Name Type Description
s clay.Vector2
Returns:
Type
clay.Matrix3

# setArray(arr)

Source:

Set components from array

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

# translate(v) → {clay.Matrix3}

Source:

Translate self by v

Parameters:
Name Type Description
v clay.Vector2
Returns:
Type
clay.Matrix3

# transpose() → {clay.Matrix2}

Source:

Transpose self, in-place.

Returns:
Type
clay.Matrix2

# (static) adjoint(out, a) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
a clay.Matrix3
Returns:
Type
number

# (static) fromMat2d(out, a) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix2d
Returns:
Type
clay.Matrix3

# (static) fromMat4(out, a) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix4
Returns:
Type
clay.Matrix3

# (static) fromQuat(out, a) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Quaternion
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
b clay.Matrix3
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
b clay.Matrix3
Returns:
Type
clay.Matrix3

# (static) normalFromMat4(out, a) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix4
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
rad number
Returns:
Type
clay.Matrix3

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

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
v clay.Vector2
Returns:
Type
clay.Matrix3

# (static) translate(out, a, v) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
v clay.Vector2
Returns:
Type
clay.Matrix3

# (static) transpose(out, a) → {clay.Matrix3}

Source:
Parameters:
Name Type Description
out clay.Matrix3
a clay.Matrix3
Returns:
Type
clay.Matrix3