@cearth/tools
Version:
CEarth 的 工具库
57 lines (27 loc) • 754 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@cearth/tools](./tools.md) > [getTransform](./tools.gettransform.md)
## getTransform() function
获取目标的变换信息
**Signature:**
```typescript
export declare function getTransform(target: PrimitiveObject): Matrix4 | null;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
target
</td><td>
[PrimitiveObject](./tools.primitiveobject.md)
</td><td>
</td></tr>
</tbody></table>
**Returns:**
Matrix4 \| null
## Remarks
把目标自身上所的携带的变换信息都转换为矩阵