@cearth/tools
Version:
CEarth 的 工具库
73 lines (36 loc) • 1.21 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [getLocalTransformInfo](./tools.getlocaltransforminfo.md)
## getLocalTransformInfo() function
获取全局的变换信息
**Signature:**
```typescript
export declare function getLocalTransformInfo(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)<!-- --><[RotationInfo](./tools.rotationinfo.md) \| Cartesian3>
</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; }