---
title: "scale | 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 scale`Const`

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

Scales a quat by a scalar number

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

the receiving vector

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

the vector to scale

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

amount to scale the vector by

#### Returns[](#returns)

out

#### Function[](#function)
