@cearth/tools
Version:
CEarth 的 工具库
83 lines (38 loc) • 870 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [worldMatrixToLocal](./tools.worldmatrixtolocal.md)
## worldMatrixToLocal() function
将世界矩阵转为局部矩阵
**Signature:**
```typescript
export declare function worldMatrixToLocal(matrix: Matrix4, referFrame: Matrix4, result?: Matrix4 | null): Matrix4;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
matrix
</td><td>
Matrix4
</td><td>
</td></tr>
<tr><td>
referFrame
</td><td>
Matrix4
</td><td>
</td></tr>
<tr><td>
result
</td><td>
Matrix4 \| null
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Matrix4