---
title: "setAxisAngle | 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 setAxisAngle

-   setAxisAngle(out: [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/), axis: [ReadonlyVec3](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyVec3/), rad: number): [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)[](#setaxisangle)
    
    Sets a quat from the given angle and rotation axis, then returns it.
    
    #### Parameters
    
    -   out: [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)
        
        the receiving quaternion
        
    -   axis: [ReadonlyVec3](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyVec3/)
        
        the axis around which to rotate
        
    -   rad: number
        
        the angle in radians
        
    
    #### Returns [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)
    
    out
