Function setAxis

  • Sets an axis of a 3x3 matrix as a vector with 2 entries

    Parameters

    • m: Mat3

      The matrix.

    • v: Vec2

      the axis vector

    • axis: number

      The axis 0 = x, 1 = y;

    • Optional dst: Mat3

      The matrix to set. If not passed a new one is created.

    Returns Mat3

    The matrix with axis set.