@cearth/tools
Version:
CEarth 的 工具库
53 lines (25 loc) • 731 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [rotationInfoToQuaternion](./tools.rotationinfotoquaternion.md)
## rotationInfoToQuaternion() function
旋转信息转四元数
**Signature:**
```typescript
export declare function rotationInfoToQuaternion(rotation: RotationInfo | Cartesian3): Quaternion;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
rotation
</td><td>
[RotationInfo](./tools.rotationinfo.md) \| Cartesian3
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Quaternion