Options
All
  • Public
  • Public/Protected
  • All
Menu

Module mat2d

Index

Functions

clone

  • Creates a new mat2d initialized with values from an existing matrix

    Parameters

    Returns IArray

    a new 2x3 matrix

copy

create

determinant

  • determinant(a: IArray): number
  • Calculates the determinant of a mat2d

    Parameters

    Returns number

    determinant of a

frob

  • Returns Frobenius norm of a mat2d

    Parameters

    • a: IArray

      the matrix to calculate Frobenius norm of

    Returns number

    Frobenius norm

identity

invert

mul

multiply

rotate

  • Rotates a mat2d by the given angle

    Parameters

    • out: IArray

      the receiving matrix

    • a: IArray

      the matrix to rotate

    • rad: number

      the angle to rotate the matrix by

    Returns IArray

    out

scale

  • Scales the mat2d by the dimensions in the given vec2

    Parameters

    • out: IArray

      the receiving matrix

    • a: IArray

      the matrix to translate

    • v: IArray

      the vec2 to scale the matrix by

    Returns IArray

    out

str

  • Returns a string representation of a mat2d

    Parameters

    • a: IArray

      matrix to represent as a string

    Returns string

    string representation of the matrix

translate

  • Translates the mat2d by the dimensions in the given vec2

    Parameters

    • out: IArray

      the receiving matrix

    • a: IArray

      the matrix to translate

    • v: IArray

      the vec2 to translate the matrix by

    Returns IArray

    out

Generated using TypeDoc