@cearth/tools
Version:
CEarth 的 工具库
71 lines (34 loc) • 1.04 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [getWorldMatrix](./tools.getworldmatrix.md)
## getWorldMatrix() function
获取全局的变换矩阵
**Signature:**
```typescript
export declare function getWorldMatrix(transform: TransformInfo<RotationInfo | Cartesian3>, options?: (TransformInfoOptions & {
defaultMatrix?: Matrix4 | null;
}) | null): Matrix4;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
transform
</td><td>
[TransformInfo](./tools.transforminfo.md)<!-- --><[RotationInfo](./tools.rotationinfo.md) \| Cartesian3>
</td><td>
</td></tr>
<tr><td>
options
</td><td>
([TransformInfoOptions](./tools.transforminfooptions.md) & { defaultMatrix?: Matrix4 \| null; }) \| null
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Matrix4