UNPKG

@cearth/tools

Version:
71 lines (34 loc) 1.04 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@cearth/tools](./tools.md) &gt; [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)<!-- -->&lt;[RotationInfo](./tools.rotationinfo.md) \| Cartesian3&gt; </td><td> </td></tr> <tr><td> options </td><td> ([TransformInfoOptions](./tools.transforminfooptions.md) &amp; { defaultMatrix?: Matrix4 \| null; }) \| null </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** Matrix4