@cearth/tools
Version:
CEarth 的 工具库
27 lines (15 loc) • 611 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [getPosition](./tools.getposition.md)
## getPosition() function
获取位置
<b>Signature:</b>
```typescript
export declare function getPosition(target: Element3D, result?: Cartesian3): Cartesian3 | null | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| target | [Element3D](./tools.element3d.md) | |
| result | Cartesian3 | <i>(Optional)</i> |
<b>Returns:</b>
Cartesian3 \| null \| undefined