Function setAxis

  • Sets an axis of a 4x4 matrix as a vector with 3 entries

    Parameters

    • m: Mat4

      The matrix.

    • v: Vec3

      the axis vector

    • axis: number

      The axis 0 = x, 1 = y, 2 = z;

    • dst: Mat4

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

    Returns Mat4

    The matrix with axis set.