Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Mat3

Index

Functions

rotX

  • create X-rotation matrix

    Parameters

    • angle: number

      rotation in radians

    Returns Matrix

rotY

rotZ

scaling

  • scaling(sx: number, sy: number, sz: number): Matrix
  • create scaling matrix

    Parameters

    • sx: number

      scale X factor

    • sy: number

      scale Y factor

    • sz: number

      scale Z factor

    Returns Matrix

    3x3 scale matrix

translation

  • translation(x: number, y: number): Matrix
  • create translation matrix

    Parameters

    • x: number

      translation in x-direction

    • y: number

      translation in y-direction

    Returns Matrix

    3x3 translation matrix

Generated using TypeDoc