@lakuna/umath
    Preparing search index...

    Function fromRotation

    • Create a transformation matrix that represents a rotation by the given angle around the given axis. This is equivalent to (but faster than) rotate(identity(out), radians, axis, out).

      Type Parameters

      Parameters

      • radians: number

        The angle in radians.

      • axis: Vector3Like

        The axis to rotate around.

      • out: T

        The matrix to store the result in.

      Returns T

      The transformation matrix.