UNPKG

@cearth/tools

Version:
73 lines (36 loc) 1.21 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@cearth/tools](./tools.md) &gt; [getWorldTransformInfo](./tools.getworldtransforminfo.md) ## getWorldTransformInfo() function 获取全局的变换信息 **Signature:** ```typescript export declare function getWorldTransformInfo(transform: TransformInfo<RotationInfo | Cartesian3>, options?: TransformInfoOptions | null): { translation: Cartesian3 | null | undefined; rotation: Quaternion | null; scale: Cartesian3 | null | undefined; }; ``` ## 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) \| null </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** { translation: Cartesian3 \| null \| undefined; rotation: Quaternion \| null; scale: Cartesian3 \| null \| undefined; }