@cearth/tools
Version:
CEarth 的 工具库
69 lines (32 loc) • 784 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
获取位置
**Signature:**
```typescript
export declare function getPosition(target: Element3D, result?: Cartesian3): Cartesian3 | null | undefined;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
target
</td><td>
[Element3D](./tools.element3d.md)
</td><td>
</td></tr>
<tr><td>
result
</td><td>
Cartesian3
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Cartesian3 \| null \| undefined