@cearth/tools
Version:
CEarth 的 工具库
83 lines (38 loc) • 953 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [worldQuaternionToLocal](./tools.worldquaterniontolocal.md)
## worldQuaternionToLocal() function
将全局坐标系下的四元数转为局部坐标系下的四元数
**Signature:**
```typescript
export declare function worldQuaternionToLocal(quate: Quaternion, referFrame: Matrix4, result?: Quaternion | null): Quaternion | null;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
quate
</td><td>
Quaternion
</td><td>
</td></tr>
<tr><td>
referFrame
</td><td>
Matrix4
</td><td>
</td></tr>
<tr><td>
result
</td><td>
Quaternion \| null
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Quaternion \| null