@cearth/tools
Version:
CEarth 的 工具库
30 lines (16 loc) • 631 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
获取目标的变换信息
<b>Signature:</b>
```typescript
export declare function getTransform(target: PrimitiveObject): Matrix4 | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| target | [PrimitiveObject](./tools.primitiveobject.md) | |
<b>Returns:</b>
Matrix4 \| null
## Remarks
把目标自身上所的携带的变换信息都转换为矩阵