---
title: "set | 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.

# Variable set`Const`

set: typeof [vec4](https://docs.maptiler.com/sdk-js/api-reference/modules/Externals.vec4/).[set](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec4.set/)

Set the components of a quat to the given values

#### Param: out[](#param-out)

the receiving quaternion

#### Param: x[](#param-x)

X component

#### Param: y[](#param-y)

Y component

#### Param: z[](#param-z)

Z component

#### Param: w[](#param-w)

W component

#### Returns[](#returns)

out

#### Function[](#function)
