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

## Functions[](#functions)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[LDU](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.mat2.LDU/)[](#ldu)

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

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

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

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

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

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

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

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

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

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

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