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

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

# Variable lerp`Const`

lerp: typeof [vec4](https://docs-beta-4y5.pages.dev/sdk-js/api-reference/modules/Externals.vec4/).[lerp](https://docs-beta-4y5.pages.dev/sdk-js/api-reference/functions/Externals.vec4.lerp/)

Performs a linear interpolation between two quat's

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

the receiving quaternion

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

the first operand

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

the second operand

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

interpolation amount, in the range \[0-1\], between the two inputs

#### Returns[](#returns)

out

#### Function[](#function)
