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

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

Creates a new quat initialized with the given values

#### 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)

a new quaternion

#### Function[](#function)
