---
title: "mat4 | 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 mat4

## Functions[](#functions)

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

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

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

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

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

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

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

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

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

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

[fromQuat](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromQuat/)[](#fromquat)

[fromQuat2](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromQuat2/)[](#fromquat2)

[fromRotation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromRotation/)[](#fromrotation)

[fromRotationTranslation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromRotationTranslation/)[](#fromrotationtranslation)

[fromRotationTranslationScale](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromRotationTranslationScale/)[](#fromrotationtranslationscale)

[fromRotationTranslationScaleOrigin](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromRotationTranslationScaleOrigin/)[](#fromrotationtranslationscaleorigin)

[fromScaling](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromScaling/)[](#fromscaling)

[fromTranslation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromTranslation/)[](#fromtranslation)

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

[fromXRotation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromXRotation/)[](#fromxrotation)

[fromYRotation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromYRotation/)[](#fromyrotation)

[fromZRotation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.fromZRotation/)[](#fromzrotation)

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

[getRotation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.getRotation/)[](#getrotation)

[getScaling](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.getScaling/)[](#getscaling)

[getTranslation](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.getTranslation/)[](#gettranslation)

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

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

[lookAt](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.lookAt/)[](#lookat)

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

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

[multiplyScalar](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.multiplyScalar/)[](#multiplyscalar)

[multiplyScalarAndAdd](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.multiplyScalarAndAdd/)[](#multiplyscalarandadd)

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

[orthoNO](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.orthoNO/)[](#orthono)

[orthoZO](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.orthoZO/)[](#orthozo)

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

[perspectiveFromFieldOfView](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.perspectiveFromFieldOfView/)[](#perspectivefromfieldofview)

[perspectiveNO](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.perspectiveNO/)[](#perspectiveno)

[perspectiveZO](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.perspectiveZO/)[](#perspectivezo)

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

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

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

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

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

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

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

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

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

[targetTo](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat4.targetTo/)[](#targetto)

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

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