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

-   conjugate(out: [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/), a: [ReadonlyQuat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyQuat/)): [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)[](#conjugate)
    
    Calculates the conjugate of a quat If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.
    
    #### Parameters
    
    -   out: [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)
        
        the receiving quaternion
        
    -   a: [ReadonlyQuat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.ReadonlyQuat/)
        
        quat to calculate conjugate of
        
    
    #### Returns [quat](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.quat/)
    
    out
