Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Function fromYRotation

  • Creates a matrix from the given angle around the Y axis This is equivalent to (but much faster than):

    mat4.identity(dest);
    mat4.rotateY(dest, dest, rad);
    

    Parameters

    • out: mat4

      mat4 receiving operation result

    • rad: number

      the angle to rotate the matrix by

    Returns mat4

    out

Was this helpful?