Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/matrix

Index

Functions

Functions

multiplyMatrix

  • multiplyMatrix(M: number[][], arr: number[]): number[]
  • Performs the following operation:

      A       M_00, M_01, M_02       arr[0]
    ( B ) = [ M_10, M_11, M_12 ] * ( arr[1] )
      C       M_20, M_21, M_22       arr[2]
    

    Parameters

    • M: number[][]

      2D matrix that performs the conversion

    • arr: number[]

      Input array to convert

    Returns number[]

    A new array of values based on the matrix multiplication