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

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

Calculates the squared length of a quat

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

vector to calculate squared length of

#### Returns[](#returns)

squared length of a

#### Function[](#function)
