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

# Function determinant

-   determinant(a: [ReadonlyMat2](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyMat2/)): number[](#determinant)
    
    Calculates the determinant of a mat2
    
    #### Parameters
    
    -   a: [ReadonlyMat2](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyMat2/)
        
        the source matrix
        
    
    #### Returns number
    
    determinant of a
