Matrix2d

clay. Matrix2d

# new Matrix2d()

Source:

Members

# _dirty :boolean

Source:
Type:
  • boolean

# array :Float32Array

Source:

Storage of Matrix2d

Type:
  • Float32Array

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# clone() → {clay.Matrix2d}

Source:

Clone a new Matrix2d

Returns:
Type
clay.Matrix2d

# copy(b) → {clay.Matrix2d}

Source:

Copy from b

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

# determinant() → {number}

Source:

Calculate matrix determinant

Returns:
Type
number

# identity() → {clay.Matrix2d}

Source:

Set to a identity matrix

Returns:
Type
clay.Matrix2d

# invert() → {clay.Matrix2d}

Source:

Invert self

Returns:
Type
clay.Matrix2d

# mul(b) → {clay.Matrix2d}

Source:

Alias for mutiply

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

# mulLeft(a) → {clay.Matrix2d}

Source:

Alias for multiplyLeft

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

# multiply(b) → {clay.Matrix2d}

Source:

Multiply self and b

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

# multiplyLeft(a) → {clay.Matrix2d}

Source:

Multiply a and self, a is on the left

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

# rotate(rad) → {clay.Matrix2d}

Source:

Rotate self by a given radian

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

# scale(s) → {clay.Matrix2d}

Source:

Scale self by s

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

# setArray(arr)

Source:

Set components from array

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

# translate(v) → {clay.Matrix2d}

Source:

Translate self by v

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