Function getAxis

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

    Parameters

    • m: Mat3

      The matrix.

    • axis: number

      The axis 0 = x, 1 = y,

    • Optional dst: Vec2

    Returns Vec2

    The axis component of m.