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

# Namespace vec3

## Functions[](#functions)

[add](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.add/)[](#add)

[angle](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.angle/)[](#angle)

[bezier](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.bezier/)[](#bezier)

[ceil](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.ceil/)[](#ceil)

[clone](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.clone/)[](#clone)

[copy](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.copy/)[](#copy)

[create](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.create/)[](#create)

[cross](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.cross/)[](#cross)

[dist](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.dist/)[](#dist)

[distance](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.distance/)[](#distance)

[div](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.div/)[](#div)

[divide](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.divide/)[](#divide)

[dot](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.dot/)[](#dot)

[equals](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.equals/)[](#equals)

[exactEquals](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.exactEquals/)[](#exactequals)

[floor](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.floor/)[](#floor)

[forEach](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.forEach/)[](#foreach)

[fromValues](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.fromValues/)[](#fromvalues)

[hermite](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.hermite/)[](#hermite)

[inverse](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.inverse/)[](#inverse)

[len](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.len/)[](#len)

[length](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.length/)[](#length)

[lerp](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.lerp/)[](#lerp)

[max](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.max/)[](#max)

[min](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.min/)[](#min)

[mul](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.mul/)[](#mul)

[multiply](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.multiply/)[](#multiply)

[negate](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.negate/)[](#negate)

[normalize](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.normalize/)[](#normalize)

[random](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.random/)[](#random)

[rotateX](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.rotateX/)[](#rotatex)

[rotateY](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.rotateY/)[](#rotatey)

[rotateZ](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.rotateZ/)[](#rotatez)

[round](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.round/)[](#round)

[scale](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.scale/)[](#scale)

[scaleAndAdd](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.scaleAndAdd/)[](#scaleandadd)

[set](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.set/)[](#set)

[slerp](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.slerp/)[](#slerp)

[sqrDist](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.sqrDist/)[](#sqrdist)

[sqrLen](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.sqrLen/)[](#sqrlen)

[squaredDistance](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.squaredDistance/)[](#squareddistance)

[squaredLength](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.squaredLength/)[](#squaredlength)

[str](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.str/)[](#str)

[sub](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.sub/)[](#sub)

[subtract](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.subtract/)[](#subtract)

[transformMat3](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.transformMat3/)[](#transformmat3)

[transformMat4](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.transformMat4/)[](#transformmat4)

[transformQuat](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.transformQuat/)[](#transformquat)

[zero](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.vec3.zero/)[](#zero)
