Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Matrix Type aliases

Matrix3: [Vector3, Vector3, Vector3]

Matrix Functions

  • inv(me: Matrix3, throwOnDegenerate: boolean): any
  • Parameters

    • me: Matrix3
    • throwOnDegenerate: boolean

    Returns any

  • brief

    Rotate CCW (angle in degrees) along the provided axis.

    Parameters

    • m: Matrix3

      The matrix

    • angleInDeg: number

      The angle of rotation

    • AXIS: string

      The axis of rotation/ Can be either x, X, y, Y, z, or Z.

    Returns Matrix3

Other Functions

  • makeRotationX(theta: number): Matrix3
  • Parameters

    • theta: number

    Returns Matrix3

  • makeRotationY(theta: number): Matrix3
  • Parameters

    • theta: number

    Returns Matrix3

  • makeRotationZ(theta: number): Matrix3
  • Parameters

    • theta: number

    Returns Matrix3

  • Pack a a double array matrix, i.e. return components in a vector

    see

    unpack

    Parameters

    Returns Vector6 | Vector9

  • Rotate forward a Matrix3 according to a rotation matrix

    Parameters

    • M: Matrix3

      The matrix3 to rotate

    • R: Matrix3

      The rotation matrix (antisymmetric)

    Returns Matrix3

  • Rotate inverse a Matrix3 according to a rotation matrix

    Parameters

    • M: Matrix3

      The matrix3 to rotate

    • R: Matrix3

      The rotation matrix (antisymmetric)

    Returns Matrix3

  • Unpack a linearized matrix (components in a vector) and return a double array matrix

    example
    // sym matrix3
    const m = [1, 2, 3,
    4, 5,
    6]
    const n = unpack(m)
    // will give
    // [
    // [1, 2, 3],
    // [2, 4, 5],
    // [3, 5, 6]
    // ]

    Parameters

    Returns Matrix3