Function getAxis

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

    Parameters

    • m: Mat4

      The matrix.

    • axis: number

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

    • Optional dst: Vec3

    Returns Vec3

    The axis component of m.