@lakuna/umath
    Preparing search index...

    Function fromRotation

    • Create a transformation matrix that represents a rotation by the given angle around the Z-axis. Equivalent to (but faster than) rotate(identity(out), r, out).

      Type Parameters

      Parameters

      • r: number

        The angle in radians.

      • out: T

        The matrix to store the result in.

      Returns T

      The transformation matrix.