<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@cearth/tools](./tools.md) &gt; [Xyz\_Hpr](./tools.xyz_hpr.md) &gt; [toHeadingPitchRoll](./tools.xyz_hpr.toheadingpitchroll.md)

## Xyz\_Hpr.toHeadingPitchRoll() function

<b>Signature:</b>

```typescript
function toHeadingPitchRoll(xyz: {
        x: number;
        y: number;
        z: number;
    }): HeadingPitchRoll;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  xyz | { x: number; y: number; z: number; } |  |

<b>Returns:</b>

HeadingPitchRoll

