Function setAxis

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

    Type Parameters

    Parameters

    • m: BaseArgType

      The matrix.

    • v: BaseArgType

      the axis vector

    • axis: number

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

    • dst: T

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

    Returns T

    The matrix with axis set.