---
title: "rotateY | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function rotateY

-   rotateY(out: [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/), a: [ReadonlyQuat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyQuat/), rad: number): [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)[](#rotatey)
    
    Rotates a quaternion by the given angle about the Y axis
    
    #### Parameters
    
    -   out: [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)
        
        quat receiving operation result
        
    -   a: [ReadonlyQuat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyQuat/)
        
        quat to rotate
        
    -   rad: number
        
        angle (in radians) to rotate
        
    
    #### Returns [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)
    
    out
