API Documentation

for 0.0.1
Show:

Matrix3 Class

Matrix3 class

This class extends the one from Three.js, API available here : http://threejs.org/docs/#Reference/Math/Matrix3

Methods

applyToVector3Array

(
  • array
)

Multiplies (applies) this matrix to every vector3 in the array.

Parameters:

  • array Array

Returns:

Array

clone

()

Returns:

Matrix3

copy

(
  • m
)

Copies the values of matrix m into this matrix.

Parameters:

Returns:

Matrix3

determinant

()

Returns:

Float

getInverse

(
  • m
  • throwOnDegenerate
)

Set this matrix to the inverse of the passed matrix.

Parameters:

  • m Matrix4
  • throwOnDegenerate Boolean

Returns:

Matrix3

getNormalMatrix

(
  • m
)

Sets this matrix as the normal matrix (upper left 3x3)of the passed Matrix4 matrix4. The normal matrix is the inverse transpose of the matrix m.

Parameters:

Returns:

Matrix3

multiplyScalar

(
  • s
)

Multiplies every component of the matrix by the scalar value s.

Parameters:

  • s Float

Returns:

Matrix3

set

(
  • n11
  • n12
  • n13
  • n21
  • n22
  • n23
  • n31
  • n32
  • n33
)

Sets the 3x3 matrix values to the given row-major sequence of values.

Parameters:

  • n11 Float
  • n12 Float
  • n13 Float
  • n21 Float
  • n22 Float
  • n23 Float
  • n31 Float
  • n32 Float
  • n33 Float

Returns:

Matrix3

transpose

()

Returns:

Matrix3

transposeIntoArray

(
  • array
)

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

Parameters:

  • array Array

Returns:

Matrix3