@cearth/tools
Version:
CEarth 的 工具库
54 lines (28 loc) • 743 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [Xyz\_Hpr](./tools.xyz_hpr.md) > [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