<!-- 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

**Signature:**

```typescript
function toHeadingPitchRoll(xyz: {
        x: number;
        y: number;
        z: number;
    }): HeadingPitchRoll;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

xyz


</td><td>

{ x: number; y: number; z: number; }


</td><td>


</td></tr>
</tbody></table>
**Returns:**

HeadingPitchRoll

